diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-26 17:03:53 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-26 17:03:53 +0100 |
commit | af6f38e8ad6bfcc5410646ee070d05f8ab0783db (patch) | |
tree | 40160ac2c80040495cdee714aeb462e5fa65437f /js/codeq/settings.js | |
parent | 108ca120edfbb3ae8ed1da08a9f80553f3325d13 (diff) |
Use a consistent naming style for DOM IDs
Diffstat (limited to 'js/codeq/settings.js')
-rw-r--r-- | js/codeq/settings.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/codeq/settings.js b/js/codeq/settings.js index 1f35abf..e6b8fce 100644 --- a/js/codeq/settings.js +++ b/js/codeq/settings.js @@ -22,18 +22,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ (function(){ "use strict"; var navigationSettings = $('#navigation-settings'), - guiLangSelect = $('#gui_lang_select'), - robotAddressInput = $('#robot_address_input'), + guiLangSelect = $('#settings-gui-lang'), + robotAddressInput = $('#settings-robot-address'), jqDisabledOverlay = $('#disabled'), - jqSettForm = $("#settingsForm"), - jqSettCancelBtn = $("#settings_cancel_btn"), - jqScreenSettings = $('#screen_settings'), - jqLayoutSelect = $('#gui_layout_select'); + jqSettForm = $("#settings-form"), + jqSettCancelBtn = $("#settings-cancel"), + jqScreenSettings = $('#screen-settings'), + jqLayoutSelect = $('#settings-layout'); codeq.on('layoutchange', function(){ - $("#screen_prolog").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); - $("#screen_python").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); - $("#screen_robot").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); + $("#screen-prolog").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); + $("#screen-python").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); + $("#screen-robot").removeClass(codeq.supportedLayouts.join(" ")).addClass(codeq.getLayout()); }); codeq.globalStateMachine.register('settings',{ |