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

26 lines
571 B
JavaScript
Raw Normal View History

2017-10-05 22:01:55 +00:00
define(function (require) {
"use strict";
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Marionette = require('marionette'),
tpl = require('text!tpl/settings.html');
return Marionette.ItemView.extend({
template: _.template(tpl),
modelEvents: {
'change': 'render',
},
templateHelpers: {
isTypeChecked: function(type) {
return this.type === type ? 'checked' : '';
},
},
});
});