this.inherited(arguments);
this.createComponents(this.buildComponents());
},
+ allRowsSaved: function () {
+ return _.every(this.getValue().models,
+ function (e) { return e.isReadyClean(); });
+ },
buttonTapped: function (inSender, inEvent) {
var editor = this.$.editableGridRow,
model,
refreshLists: function () {
this.$.aboveGridList.refresh();
this.$.belowGridList.refresh();
+ this.$.exportButton.setDisabled(! this.allRowsSaved());
},
reset: function () {
this.setEditableIndex(null);
if (this.$.summaryPanel) {
this.$.summaryPanel.setValue(model);
}
+
+ this.$.exportButton.setDisabled(! this.allRowsSaved());
}
});
}());