diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2016-06-18 12:25:51 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2016-06-18 12:25:51 +0300 |
commit | 3c098d4ba7cf9d58898df91917e14382cbce6032 (patch) | |
tree | ab75bec382bcb107a382fda676b3d1b07f1a986f /main.js | |
parent | 8548d1d78e1801ed61d71b432e3e2646ad4170cb (diff) |
calibration tab removed
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 25 |
1 files changed, 11 insertions, 14 deletions
@@ -42,7 +42,7 @@ $(document).ready(function () { console.log('Application version expired'); GUI.log('You are using an old version of ' + chrome.runtime.getManifest().name + '. There may be a more recent version with improvements and fixes.'); } - + chrome.storage.local.get('logopen', function (result) { if (result.logopen) { $("#showlog").trigger('click'); @@ -71,20 +71,20 @@ $(document).ready(function () { tabClass = $(self).parent().prop('class'); var tabRequiresConnection = $(self).parent().hasClass('mode-connected'); - + var tab = tabClass.substring(4); var tabName = $(self).text(); - + if (tabRequiresConnection && !CONFIGURATOR.connectionValid) { GUI.log(chrome.i18n.getMessage('tabSwitchConnectionRequired')); return; } - + if (GUI.connect_lock) { // tab switching disabled while operation is in progress GUI.log(chrome.i18n.getMessage('tabSwitchWaitForOperation')); return; } - + if (GUI.allowedTabs.indexOf(tab) < 0) { GUI.log(chrome.i18n.getMessage('tabSwitchUpgradeRequired', [tabName])); return; @@ -142,9 +142,6 @@ $(document).ready(function () { case 'setup': TABS.setup.initialize(content_ready); break; - case 'calibration': - TABS.calibration.initialize(content_ready); - break; case 'configuration': TABS.configuration.initialize(content_ready); break; @@ -319,7 +316,7 @@ $(document).ready(function () { } } }); - + $("#showlog").on('click', function() { var state = $(this).data('state'); if ( state ) { @@ -332,7 +329,7 @@ $(document).ready(function () { $(".tab_container").removeClass('logopen'); $("#scrollicon").removeClass('active'); chrome.storage.local.set({'logopen': false}); - + state = false; }else{ $("#log").animate({height: 111}, 200); @@ -346,11 +343,11 @@ $(document).ready(function () { } $(this).text(state ? 'Hide Log' : 'Show Log'); $(this).data('state', state); - + }); - + var profile_e = $('select[name="profilechange"]'); - + profile_e.change(function () { var profile = parseInt($(this).val()); MSP.send_message(MSP_codes.MSP_SELECT_SETTING, [profile], false, function () { @@ -419,4 +416,4 @@ function updateActivatedTab() { var activeTab = $('#tabs > ul li.active'); activeTab.removeClass('active'); $('a', activeTab).trigger('click'); -}
\ No newline at end of file +} |