mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Merge branch 4.0
This commit is contained in:
@@ -130,7 +130,8 @@ define([
|
||||
"label_fr": $("#new-label_fr", this.$el).val(),
|
||||
"label_de": $("#new-label_de", this.$el).val(),
|
||||
"label_nl": $("#new-label_nl", this.$el).val(),
|
||||
"multi": $("#new-multivalued", this.$el).is(":checked")
|
||||
"multi": $("#new-multivalued", this.$el).is(":checked"),
|
||||
"report": false
|
||||
});
|
||||
|
||||
field.save(null, {
|
||||
|
@@ -93,7 +93,8 @@ define([
|
||||
"keyup input.input-label": "labelChangedAction",
|
||||
"change input[type=checkbox]": "fieldChangedAction",
|
||||
"change select": "selectionChangedAction",
|
||||
"click .lng-label a": "_toggleLabels"
|
||||
"click .lng-label a": "_toggleLabels",
|
||||
"click input#multi": "multiClickdAction"
|
||||
},
|
||||
triggerControlledVocabulary: function (e) {
|
||||
if ($(e.target, this.$el).find("option:selected").val() === "") {
|
||||
@@ -133,6 +134,16 @@ define([
|
||||
|
||||
return this;
|
||||
},
|
||||
multiClickdAction: function (e) {
|
||||
if($(e.target).is(":checked")) {
|
||||
$("#separatorZone").show();
|
||||
}
|
||||
else {
|
||||
$("#separatorZone").hide();
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
tagFieldChangedAction: function (e) {
|
||||
var $this = this;
|
||||
var fieldTag = $(e.target);
|
||||
@@ -154,7 +165,7 @@ define([
|
||||
} else {
|
||||
$this.fieldChangedAction(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if ("" !== fieldTagValue) {
|
||||
var jqxhr = $.get("/admin/fields/tags/" + fieldTagValue, onFieldValid).fail(function () {
|
||||
|
@@ -38,7 +38,7 @@ define([
|
||||
},
|
||||
success: function(data){
|
||||
if (data) {
|
||||
manageSession(data);
|
||||
commonModule.manageSession(data);
|
||||
}
|
||||
var t = 120000;
|
||||
if (data.apps && parseInt(data.apps) > 1) {
|
||||
|
Reference in New Issue
Block a user