mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +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,12 +1,12 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'models/dcField'
|
||||
"underscore",
|
||||
"backbone",
|
||||
"models/dcField"
|
||||
], function(_, Backbone, DcFieldModel) {
|
||||
var DcFieldCollection = Backbone.Collection.extend({
|
||||
model: DcFieldModel,
|
||||
url: function() {
|
||||
return '/admin/fields/dc-fields';
|
||||
return "/admin/fields/dc-fields";
|
||||
},
|
||||
comparator: function(item) {
|
||||
return item.get("label");
|
||||
|
@@ -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 || {});
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -1,12 +1,12 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'models/vocabulary'
|
||||
"underscore",
|
||||
"backbone",
|
||||
"models/vocabulary"
|
||||
], function(_, Backbone, VocabularyModel) {
|
||||
var VocabularyCollection = Backbone.Collection.extend({
|
||||
model: VocabularyModel,
|
||||
url: function() {
|
||||
return '/admin/fields/vocabularies';
|
||||
return "/admin/fields/vocabularies";
|
||||
},
|
||||
comparator: function(item) {
|
||||
return item.get("name");
|
||||
|
Reference in New Issue
Block a user