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

35 lines
916 B
JavaScript
Raw Normal View History

2014-02-09 03:19:48 +00:00
define(function (require) {
"use strict";
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Marionette = require('marionette'),
FormView = require('marionette-formview'),
Settings = require('app/models/settings'),
tpl = require('text!tpl/forms/settings.html');
return FormView.extend({
template: _.template(tpl),
fields: {
path: {
el: ".path",
required: "Please enter a valid path.",
validations: {
email: "Please enter a valid path."
}
}
},
initialize: function () {
var self = this;
2014-04-06 23:35:37 +00:00
new Settings().fetch({success: function (model, response, options) {
self.model = model;
self.runInitializers();
}});
2014-02-09 03:19:48 +00:00
}
});
});