Browse Source

Change how the element in Style Manager is updated

pull/712/head
Artur Arseniev 9 years ago
parent
commit
aa302fb884
  1. 7
      src/style_manager/view/PropertyView.js

7
src/style_manager/view/PropertyView.js

@ -157,17 +157,14 @@ module.exports = Backbone.View.extend({
inputValueChanged(e) {
e && e.stopPropagation();
this.model.setValue(this.getInputValue(), 1, { fromInput: 1 });
this.elementUpdated();
},
/**
* Fired when the element of the property is updated
*/
elementUpdated() {
this.model.set('status', 'updated');
const parent = this.model.parent;
const parentView = parent && parent.view;
parentView && parentView.elementUpdated();
this.setStatus('updated');
},

Loading…
Cancel
Save