Add global register feature

Tweak admin field app

Fix typo

Tweaks

Fix typo
This commit is contained in:
Nicolas Le Goff
2013-05-15 17:56:28 +02:00
committed by Romain Neutron
parent 9a9235a15e
commit 0539db7598
28 changed files with 1320 additions and 292 deletions

View File

@@ -1,7 +1,7 @@
define([
'underscore',
'backbone',
'models/field'
"underscore",
"backbone",
"models/field"
], function(_, Backbone, FieldModel) {
var FieldCollection = Backbone.Collection.extend({
initialize: function(models, options) {
@@ -12,7 +12,7 @@ define([
},
model: FieldModel,
url: function() {
return '/admin/fields/' + this.sbasId + '/fields';
return "/admin/fields/" + this.sbasId + "/fields";
},
search: function(letters) {
if (letters === "")
@@ -52,6 +52,10 @@ define([
}
return index - 1;
},
// save all collection
save: function(options) {
return Backbone.sync("update", this, options || {});
}
});