mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Grid toggle consistent with the button and the shortcut
This commit is contained in:
parent
d230c267a3
commit
fb7f64ddb0
2 changed files with 3 additions and 1 deletions
|
@ -450,6 +450,8 @@ module.exports = Surface = class Surface extends CocoClass
|
||||||
onToggleGrid: (e) ->
|
onToggleGrid: (e) ->
|
||||||
e?.preventDefault?()
|
e?.preventDefault?()
|
||||||
if @gridShowing() then @hideGrid() else @showGrid()
|
if @gridShowing() then @hideGrid() else @showGrid()
|
||||||
|
flag = $('#grid-toggle i.icon-ok')
|
||||||
|
flag.toggleClass 'invisible', not @gridShowing()
|
||||||
|
|
||||||
onSetGrid: (e) ->
|
onSetGrid: (e) ->
|
||||||
if e.grid then @showGrid() else @hideGrid()
|
if e.grid then @showGrid() else @hideGrid()
|
||||||
|
|
|
@ -33,7 +33,7 @@ button.btn.btn-xs.btn-inverse#music-button(title="Toggle Music")
|
||||||
li(title="Ctrl/Cmd + G: Toggle grid display").selectable#grid-toggle
|
li(title="Ctrl/Cmd + G: Toggle grid display").selectable#grid-toggle
|
||||||
i.icon-th
|
i.icon-th
|
||||||
span(data-i18n="play_level.grid") Grid
|
span(data-i18n="play_level.grid") Grid
|
||||||
i.icon-ok.secret
|
i.icon-ok.secret.invisible
|
||||||
li.selectable#edit-wizard-settings
|
li.selectable#edit-wizard-settings
|
||||||
i.icon-user
|
i.icon-user
|
||||||
span(data-i18n="play_level.customize_wizard") Customize Wizard
|
span(data-i18n="play_level.customize_wizard") Customize Wizard
|
||||||
|
|
Loading…
Reference in a new issue