mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Add global register feature
Tweak admin field app Fix typo Tweaks Fix typo
This commit is contained in:

committed by
Romain Neutron

parent
9a9235a15e
commit
0539db7598
@@ -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 || {});
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user