arma-server-web-admin/public/js/app/views/settings.js

19 lines
350 B
JavaScript
Raw Normal View History

var _ = require('underscore')
var Marionette = require('marionette')
2017-10-05 22:01:55 +00:00
var tpl = require('tpl/settings.html')
2017-10-05 22:01:55 +00:00
module.exports = Marionette.ItemView.extend({
template: _.template(tpl),
2017-10-05 22:01:55 +00:00
modelEvents: {
change: 'render'
},
2017-10-05 22:01:55 +00:00
templateHelpers: {
isTypeChecked: function (type) {
return this.type === type ? 'checked' : ''
}
}
})