codecombat/app/views/editor/thang/home.coffee

15 lines
425 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
SearchView = require 'views/kinds/SearchView'
module.exports = class ThangTypeHomeView extends SearchView
2014-01-06 15:37:35 -05:00
id: 'thang-type-home-view'
2014-01-03 13:32:13 -05:00
modelLabel: 'Thang Type'
model: require 'models/ThangType'
modelURL: '/db/thang.type'
page: 'thang'
tableTemplate: require 'templates/kinds/table'
2014-01-03 13:32:13 -05:00
2014-01-06 18:36:35 -05:00
onSearchChange: =>
super()
@$el.find("img").error(-> $(this).hide())
# TODO: do the new thing on click, not just enter