Merge pull request #534 from Shrihari/fix-grid-toggle

Fix Grid Toggle consistency
This commit is contained in:
Nick Winter 2014-03-13 06:50:56 -07:00
commit 10e4bc737a
2 changed files with 3 additions and 1 deletions

View file

@ -452,6 +452,8 @@ module.exports = Surface = class Surface extends CocoClass
onToggleGrid: (e) ->
e?.preventDefault?()
if @gridShowing() then @hideGrid() else @showGrid()
flag = $('#grid-toggle i.icon-ok')
flag.toggleClass 'invisible', not @gridShowing()
onSetGrid: (e) ->
if e.grid then @showGrid() else @hideGrid()

View file

@ -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
i.icon-th
span(data-i18n="play_level.grid") Grid
i.icon-ok.secret
i.icon-ok.secret.invisible
li.selectable#edit-wizard-settings
i.icon-user
span(data-i18n="play_level.customize_wizard") Customize Wizard