Fix #1453 Edition field on firefox

This commit is contained in:
Nicolas Le Goff
2013-09-27 18:35:10 +02:00
parent af6dc0f565
commit d4045f968c
2 changed files with 8 additions and 3 deletions

View File

@@ -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"),