mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Fix #1453 Edition field on firefox
This commit is contained in:
@@ -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