arma-server-web-admin/public/js/app/views/settings.js
Björn Dahlgren c58ec6f308 Update frontend dependencies
Backbone to 1.3.3
Marionette to 2.4.7
Underscore to 1.8.3

Fixes collection sorting when new items are added
2018-08-18 02:53:27 +02:00

26 lines
571 B
JavaScript

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' : '';
},
},
});
});