mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix #1453 Edition field on firefox
This commit is contained in:
@@ -89,7 +89,7 @@ define([
|
||||
"blur input#tbranch": "fieldChangedAction",
|
||||
"blur input#separator": "fieldChangedAction",
|
||||
"blur input#tag": "tagFieldChangedAction",
|
||||
"blur input.input-label": "labelChangedAction",
|
||||
"keyup input.input-label": "labelChangedAction",
|
||||
"change input[type=checkbox]": "fieldChangedAction",
|
||||
"change select": "selectionChangedAction",
|
||||
"click .lng-label a": "_toggleLabels"
|
||||
@@ -194,8 +194,7 @@ define([
|
||||
},
|
||||
_onModelChange: function() {
|
||||
AdminFieldApp.fieldListView.collection.remove(this.model, {silent: true});
|
||||
AdminFieldApp.fieldListView.collection.add(this.model);
|
||||
|
||||
AdminFieldApp.fieldListView.collection.add(this.model, {silent: true});
|
||||
AdminFieldApp.saveView.updateStateButton();
|
||||
},
|
||||
// select temView by index in itemList
|
||||
|
@@ -18,6 +18,7 @@ define([
|
||||
className: "field-row",
|
||||
initialize: function() {
|
||||
// destroy view is model is deleted
|
||||
this.model.on("change", this.onChange, this);
|
||||
this.model.on("destroy", this.remove, this);
|
||||
},
|
||||
events : {
|
||||
@@ -45,6 +46,11 @@ define([
|
||||
|
||||
return this;
|
||||
},
|
||||
onChange: function() {
|
||||
if (this.model.hasChanged("tag")) {
|
||||
this.render();
|
||||
}
|
||||
},
|
||||
render: function() {
|
||||
var template = _.template($("#list_row_template").html(), {
|
||||
id: this.model.get("id"),
|
||||
|
Reference in New Issue
Block a user