Minor UI updates to level editor's thang tab

This commit is contained in:
Jayant Jain 2014-03-13 12:19:51 +05:30
parent 8be2f8c455
commit c24469e86b
2 changed files with 6 additions and 5 deletions

View file

@ -2,15 +2,15 @@
h3(data-i18n="editor.level_tab_thangs_title") Current Thangs
.btn-group(data-toggle="buttons-radio")#extant-thangs-filter
button.btn.btn-primary All
button.btn.btn-primary(value="Unit")
button.btn.btn-primary(value="Unit", title="Unit")
i.icon-user
button.btn.btn-primary(value="Wall")
button.btn.btn-primary(value="Wall", title="Wall")
i.icon-home
button.btn.btn-primary(value="Floor")
button.btn.btn-primary(value="Floor", title="Floor")
i.icon-globe
button.btn.btn-primary(value="Doodad")
button.btn.btn-primary(value="Doodad", title="Doodad")
i.icon-leaf
button.btn.btn-primary(value="Misc")
button.btn.btn-primary(value="Misc", title="Misc")
i.icon-question-sign
#thangs-treema(title="Double click to configure a thang")

View file

@ -98,6 +98,7 @@ module.exports = class ThangsTabView extends View
@$el.find('#extant-thangs-filter button:first').button('toggle')
onFilterExtantThangs: (e) ->
@$el.find('#extant-thangs-filter button.active').button('toggle')
button = $(e.target).closest('button')
button.button('toggle')
val = button.val()