diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-01-11 01:26:42 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-01-11 01:26:42 +0300 |
commit | 9899362a7153a2c44a6763b0e66c0e872822e733 (patch) | |
tree | 8c64b80b8bd9d677f1466028f283bcefd6f30c2b | |
parent | 6eded9dcd02117c1e64329f127daed6e48179fef (diff) |
Remove support tab and redirect users to wiki
-rwxr-xr-x | _locales/en/messages.json | 39 | ||||
-rwxr-xr-x | main.html | 2 | ||||
-rw-r--r-- | main.js | 9 | ||||
-rw-r--r-- | src/css/tabs/help.css | 34 | ||||
-rw-r--r-- | tabs/help.html | 41 | ||||
-rw-r--r-- | tabs/help.js | 21 |
6 files changed, 6 insertions, 140 deletions
diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e14bb033..e5cb087d 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -268,45 +268,6 @@ "defaultSponsorsHead": { "message": "Sponsors" }, - "defaultDocumentationHead": { - "message": "Documentation / Manual" - }, - "defaultDocumentation": { - "message": "INAV documentation is available in Markdown format.<br /><br />" - }, - "defaultDocumentation1": { - "message": "The PDF manual appropriate to the firmware can be downloaded from the github releases page, <a href=\"https://github.com/iNavFlight/inav/releases\" target=\"_blank\">here</a>." - }, - "defaultDocumentation2": { - "message": "The Markdown latest online documentation is available <a href=\"https://github.com/iNavFlight/inav/tree/master/docs\" target=\"_blank\">here</a> - you can switch to the appropriate version of the documentation by selecting the tag." - }, - "defaultSupportHead": { - "message": "Support" - }, - "defaultSupportSubline1": { - "message": "Support Scources" - }, - "defaultSupportSubline2": { - "message": "Developer" - }, - "defaultSupport": { - "message": "For support please search the forums first or contact your vendor.<br /><br />" - }, - "defaultSupport1": { - "message": "<a href=\"http://www.rcgroups.com/forums/showthread.php?t=2249574&page=1\" target=\"_blank\">RC Groups thread</a>" - }, - "defaultSupport2": { - "message": "<a href=\"http://www.multiwii.com/forum/viewtopic.php?f=23&t=5149\" target=\"_blank\">MultiWii forums thread</a>" - }, - "defaultSupport3": { - "message": "<a href=\"https://github.com/iNavFlight\" target=\"_blank\">GitHub</a>" - }, - "defaultSupport4": { - "message": "<a href=\"https://gitter.im/iNavFlight/inav\" target=\"_blank\">Gitter channel</a>" - }, - "defaultSupport5": { - "message": "<a href=\"https://gitter.im/iNavFlight/inav\" target=\"_blank\">Join via WebClient</a>" - }, "communityRCGroupsSupport": { "message": "RC Groups Support" }, @@ -170,7 +170,7 @@ <ul class="mode-disconnected"> <li class="tab_landing"><a href="#" data-i18n="tabLanding" class="tabicon ic_welcome" title="Welcome"></a></li> - <li class="tab_help"><a href="#" data-i18n="tabHelp" class="tabicon ic_help" + <li class="tab_help"><a href="https://github.com/iNavFlight/inav/wiki" target="_blank" data-i18n="tabHelp" class="tabicon ic_help" title="Documentation & Support"></a></li> <li class="tab_firmware_flasher"><a href="#" data-i18n="tabFirmwareFlasher" class="tabicon ic_flasher" title="Firmware Flasher"></a></li> @@ -132,6 +132,11 @@ $(document).ready(function () { // Tabs var ui_tabs = $('#tabs > ul'); $('a', ui_tabs).click(function () { + + if ($(this).parent().hasClass("tab_help")) { + return; + } + if ($(this).parent().hasClass('active') == false && !GUI.tab_switch_in_progress) { // only initialize when the tab isn't already active var self = this, tabClass = $(self).parent().prop('class'); @@ -189,10 +194,6 @@ $(document).ready(function () { case 'firmware_flasher': TABS.firmware_flasher.initialize(content_ready); break; - case 'help': - TABS.help.initialize(content_ready); - break; - case 'auxiliary': TABS.auxiliary.initialize(content_ready); break; diff --git a/src/css/tabs/help.css b/src/css/tabs/help.css deleted file mode 100644 index 69029df4..00000000 --- a/src/css/tabs/help.css +++ /dev/null @@ -1,34 +0,0 @@ -.tab-help .twothird { - width: calc(67% - 15px); - margin-right: 15px; -} - -.tab-help .gui_box { - min-height: 500px; - margin-bottom: 0; -} - -.tab-help ul { - margin-bottom:15px; -} - -.tab-help li { - border-top: 1px dotted silver; - padding-top: 5px; - padding-bottom: 5px; - background: url(../../../images/arrow.svg) no-repeat 0 8px; - background-size: 12px; -} - -.tab-help li span { - margin-left: 17px; - display:block; -} - -.tab-help li span a { - color: #37a8db; -} - -.tab-help .subline { - margin-bottom: 5px; -}
\ No newline at end of file diff --git a/tabs/help.html b/tabs/help.html deleted file mode 100644 index dc691482..00000000 --- a/tabs/help.html +++ /dev/null @@ -1,41 +0,0 @@ -<div class="tab-help"> - <div class="content_wrapper"> - <div class="cf_column twothird"> - <div class="gui_box"> - <div class="gui_box_titlebar"> - <div class="spacer_box_title" i18n="defaultDocumentationHead"></div> - </div> - <div class="spacer"> - <p i18n="defaultDocumentation"></p> - <ul> - <!-- <li><span i18n="defaultDocumentation1"></span></li> --> - <li><span i18n="defaultDocumentation2"></span></li> - </ul> - </div> - </div> - </div> - <div class="cf_column third_right"> - <div class="gui_box"> - <div class="gui_box_titlebar"> - <div class="spacer_box_title" i18n="defaultSupportHead"></div> - </div> - <div class="spacer"> - <p i18n="defaultSupport"></p> - <div class="subline"><strong i18n="defaultSupportSubline1"></strong></div> - <ul> - <li><span i18n="defaultSupport1"></span></li> - <li><span i18n="defaultSupport2"></span></li> - </ul> - - <div class="subline"><strong i18n="defaultSupportSubline2"></strong></div> - <ul> - <li><span i18n="defaultSupport3"></span></li> - <li><span i18n="defaultSupport4"></span></li> - <!-- <li><span i18n="defaultSupport5"></span></li> --> - </ul> - - </div> - </div> - </div> - </div> -</div> diff --git a/tabs/help.js b/tabs/help.js deleted file mode 100644 index 04fd92a5..00000000 --- a/tabs/help.js +++ /dev/null @@ -1,21 +0,0 @@ -/*global $*/ -'use strict'; - -TABS.help = {}; -TABS.help.initialize = function (callback) { - - if (GUI.active_tab != 'help') { - GUI.active_tab = 'help'; - googleAnalytics.sendAppView('help'); - } - - $('#content').load("./tabs/help.html", function () { - localize(); - - GUI.content_ready(callback); - }); -}; - -TABS.help.cleanup = function (callback) { - if (callback) callback(); -};
\ No newline at end of file |