TagSpaces is an offline, open source, document manager with tagging support
exchanging contactus popup with a radio tab
Ilian35b4a5b12a48
diff --git a/data/index.html b/data/index.htmlindex 32240be99..77667b6c1 100644--- a/data/index.html+++ b/data/index.html@@ -127,7 +127,18 @@ can be found in the LICENSE file.</nav><div class="ts-container"><div id="tagGroupsContent"></div>- <div id="locationContent"></div>+ <div id="locationContent"></div>+ <div id="contactUsContent">+ <a class="btn btn-link" title="About TagSpaces" data-toggle="modal" data-target="#dialogAboutTS" data-backdrop="static"><i class="fa fa-comment-o"></i> About TagSpaces</a>+ <a class="btn btn-link" id="openHints" title="Show hints"><i class="fa fa-video-camera"></i> Starting Hints</a>+ <a class="btn btn-link" 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-link" 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-link" 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-link" 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-link" 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-link" url="https://www.facebook.com/tagspacesapp" target="_system" id="openGooglePlus" title="Like us on facebook"><i class="fa fa-facebook"></i> Like us on facebook</a>+ <a class="btn btn-link" href="mailto:[email protected]" title="Send email to us"><i class="fa fa-envelope-o"></i> Contact Us</a>+ </div></div></div><div class="row3" style="white-space:nowrap;">@@ -138,10 +149,11 @@ can be found in the LICENSE file.<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>+ <label class="btn btn-default" id="contactUs" data-i18n="[title]app.switchToContactUsTooltip;" title="Show Contact Us">+ <input type="radio" name="options"> <i class="fa fa-comments"></i>+ </label></div><div class="btn-group dropup" id="sideBarButtunGroup" style="margin-right: 5px;">- <button class="btn btn-default" data-i18n="[title]app.?;" title="" 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"> <i class="fa fa-external-link-square"></i> </button><button class="btn btn-default" data-i18n="[title]app.?;" title="Settings" id="openOptions">@@ -627,17 +639,5 @@ can be found in the LICENSE file.</ul></div>-<div id="contactUsContent" style="visibility: hidden">- <a class="btn btn-default btn-block" title="About TagSpaces" data-toggle="modal" data-target="#dialogAboutTS" data-backdrop="static"><i class="fa fa-comment-o"></i> About TagSpaces</a>- <a class="btn btn-default btn-block" id="openHints" title="Show hints"><i class="fa fa-video-camera"></i> Starting Hints</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" url="https://www.facebook.com/tagspacesapp" target="_system" id="openGooglePlus" title="Like us on facebook"><i class="fa fa-facebook"></i> Like us on facebook</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>-</body></html>diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex c3b8dd28a..0ce680065 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -345,9 +345,15 @@ define(function(require, exports, module) {showTagsPanel();console.log("Show Tags");});++ $('#contactUs').click(function (e) {+ showContactUsPanel();+ console.log("Show Contact Us");+ });// Hide the tagGroupsContent or locationContent by default$('#locationContent').hide(); // #tagGroupsContent+ $('#contactUsContent').hide();// Search UI@@ -424,35 +430,29 @@ define(function(require, exports, module) {// Search UI END$('#perspectiveSwitcherButton').prop('disabled', true);-- $('#contactUs').popover({- placement: 'top',- content: $("#contactUsContent").html(),- html: true- });- $("#sideBarButtunGroup").on('click',"#openHints", function () {+ $("#contactUsContent").on('click',"#openHints", function () {showWelcomeDialog();});// Handle external links _system is important in cordova- $("#sideBarButtunGroup").on('click',"#openUservoice", function () {+ $("#contactUsContent").on('click',"#openUservoice", function () {window.open($(this).attr("url"),"_system");});- $("#sideBarButtunGroup").on('click',"#openGitHubIssues", function () {+ $("#contactUsContent").on('click',"#openGitHubIssues", function () {window.open($(this).attr("url"),"_system");});- $("#sideBarButtunGroup").on('click',"#openTwitter", function () {+ $("#contactUsContent").on('click',"#openTwitter", function () {window.open($(this).attr("url"),"_system");});- $("#sideBarButtunGroup").on('click',"#openTwitter2", function () {+ $("#contactUsContent").on('click',"#openTwitter2", function () {window.open($(this).attr("url"),"_system");});- $("#sideBarButtunGroup").on('click',"#openGooglePlus", function () {+ $("#contactUsContent").on('click',"#openGooglePlus", function () {window.open($(this).attr("url"),"_system");});@@ -571,22 +571,34 @@ define(function(require, exports, module) {$('#directoryMenu').hide();$('#tagMenu').hide();$('#fileMenu').hide();- //$('.popover').hide();};var showLocationsPanel = function() {+ $('#contactUsContent').hide();$('#tagGroupsContent').hide();$('#locationContent').show();- $('#showLocations').addClass("active");- $('#showTagGroups').removeClass("active");+ $('#showTagGroups').removeClass("active");+ $('#contactUs').removeClass("active");+ $('#showLocations').addClass("active");};var showTagsPanel = function() {- $('#locationContent').hide();- $('#tagGroupsContent').show();+ $('#contactUsContent').hide();+ $('#locationContent').hide();+ $('#tagGroupsContent').show();$('#showLocations').removeClass("active");+ $('#contactUs').removeClass("active");$('#showTagGroups').addClass("active");};++ var showContactUsPanel = function() {+ $('#locationContent').hide();+ $('#tagGroupsContent').hide();+ $('#contactUsContent').show();+ $('#showLocations').removeClass("active");+ $('#showTagGroups').removeClass("active");+ $('#contactUs').addClass("active");+ };// Public API definitionexports.showContextMenu = showContextMenu;