TagSpaces is an offline, open source, document manager with tagging support
Correcting opening of external links in the application itself in cordova
Iliane40d2452b941
diff --git a/data/index.html b/data/index.htmlindex 41203b93d..0bca66b92 100644--- a/data/index.html+++ b/data/index.html@@ -77,14 +77,14 @@ can be found in the LICENSE file.</div><div class="row3"><div class="btn-group" data-toggle="buttons">- <label class="btn btn-default active" id="showTagGroups" title="Show Tag Library" data-i18n="[title]app.switchToTagsTooltip;">- <input type="radio" name="options" > <i class="fa fa-tags"></i> - </label>+ <label class="btn btn-default active" id="showTagGroups" title="Show Tag Library" data-i18n="[title]app.switchToTagsTooltip;">+ <input type="radio" name="options" > <i class="fa fa-tags"></i> + </label><label class="btn btn-default" id="showLocations" data-i18n="[title]app.switchToLocationsTooltip;" title="Show Folder Navigator"><input type="radio" name="options"> <i class="fa fa-folder"></i> </label></div>- <div class="btn-group dropup" style="margin-right: 5px;">+ <div class="btn-group dropup" id="sideBarButtunGroup" style="margin-right: 5px;"><button class="btn btn-default" data-i18n="[title]app.?;" title="Get in touch" id="contactUs" rel="popover"> <i class="fa fa-comments"></i> </button><button class="btn btn-default" data-i18n="[title]app.?;" title="Open new TagSpaces Instance" id="startNewInstanceBack">@@ -562,11 +562,11 @@ can be found in the LICENSE file.<div id="contactUsContent"><a class="btn btn-default btn-block" title="About TagSpaces" data-toggle="modal" data-target="#dialogAboutTS"><i class="fa fa-comment-o"></i> About TagSpaces</a>- <a class="btn btn-default btn-block" href="https://tagspaces.uservoice.com/forums/213931-general" target="_system" id="openUservoice" title="Suggest or vote for a feature"> <i class="fa fa-bullhorn"></i> Suggest New Features </a>- <a class="btn btn-default btn-block" href="https://github.com/uggrock/tagspaces/issues/" target="_system" id="openGitHubIssues" title="Report an issue"><i class="fa fa-flag"></i> Report Issue</a>- <a class="btn btn-default btn-block" href="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ftagspaces.org%2F&text=Organize%20your%20files%20with%20@tagspaces" target="_system" id="openTwitter" title="Tweet about @tagspaces"><i class="fa fa-twitter"></i> Tweet About Us</a>- <a class="btn btn-default btn-block" href="https://twitter.com/intent/user?screen_name=tagspaces" target="_system" id="openTwitter2" title="Follow @tagspaces"><i class="fa fa-twitter-square"></i> Follow @tagspaces</a>- <a class="btn btn-default btn-block" href="https://plus.google.com/+TagspacesOrg/" target="_system" id="openGooglePlus" title="Join us in Google+"><i class="fa fa-google-plus"></i> Join us in Google+</a>+ <a class="btn btn-default btn-block" url="https://tagspaces.uservoice.com/forums/213931-general" id="openUservoice" title="Suggest or vote for a feature"> <i class="fa fa-bullhorn"></i> Suggest New Features </a>+ <a class="btn btn-default btn-block" url="https://github.com/uggrock/tagspaces/issues/" target="_system" id="openGitHubIssues" title="Report an issue"><i class="fa fa-flag"></i> Report Issue</a>+ <a class="btn btn-default btn-block" url="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ftagspaces.org%2F&text=Organize%20your%20files%20with%20@tagspaces" target="_system" id="openTwitter" title="Tweet about @tagspaces"><i class="fa fa-twitter"></i> Tweet About Us</a>+ <a class="btn btn-default btn-block" url="https://twitter.com/intent/user?screen_name=tagspaces" target="_system" id="openTwitter2" title="Follow @tagspaces"><i class="fa fa-twitter-square"></i> Follow @tagspaces</a>+ <a class="btn btn-default btn-block" url="https://plus.google.com/+TagspacesOrg/" target="_system" id="openGooglePlus" title="Join us in Google+"><i class="fa fa-google-plus"></i> Join us in Google+</a><a class="btn btn-default btn-block" href="mailto:[email protected]" title="Send email to us"><i class="fa fa-envelope-o"></i> Contact Us</a></div>diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex ec229be33..a34336512 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -324,7 +324,7 @@ define(function(require, exports, module) {console.log("Show Tags");});- // Hide the taggroups by default+ // Hide the tagGroupsContent or locationContent by default$('#locationContent').hide(); // #tagGroupsContent// Search UI@@ -400,28 +400,34 @@ define(function(require, exports, module) {});// Search UI END++ $('#contactUs').popover({+ placement: 'top',+ content: $("#contactUsContent").html(),+ html: true+ });// Handle external links _system is important in cordova- /* $("#openUservoice").on('click', function () {- window.open("https://tagspaces.uservoice.com/forums/213931-general","_system");+ $("#sideBarButtunGroup").on('click',"#openUservoice", function () {+ window.open($(this).attr("url"),"_system");});- $("#openGitHubIssues")- .click(function(evt) {- window.open("https://github.com/uggrock/tagspaces/issues/","_system");+ $("#sideBarButtunGroup").on('click',"#openGitHubIssues", function () {+ window.open($(this).attr("url"),"_system");});- $("#openTwitter")- .click(function(evt) {- window.open("https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ftagspaces.org%2F&text=Organize%20your%20files%20with%20@tagspaces","_system");- });*/-- $('#contactUs').popover({- placement: 'top',- content: document.getElementById("contactUsContent").innerHTML,- html: true- });-+ $("#sideBarButtunGroup").on('click',"#openTwitter", function () {+ window.open($(this).attr("url"),"_system");+ });++ $("#sideBarButtunGroup").on('click',"#openTwitter2", function () {+ window.open($(this).attr("url"),"_system");+ });++ $("#sideBarButtunGroup").on('click',"#openGooglePlus", function () {+ window.open($(this).attr("url"),"_system");+ });+// Hide drop downs by click and drag$(document).click(function () {TSCORE.hideAllDropDownMenus();@@ -443,7 +449,7 @@ define(function(require, exports, module) {$("#directoryMenuOpenDirectory").parent().hide();$("#fileMenuOpenDirectory").parent().hide();$("#openDirectory").parent().hide();- $("#openFileInNewWindow").hide();+ //$("#openFileInNewWindow").hide();$("#openNatively").hide();}if(isFirefox) {