|
|
|
@ -20,7 +20,8 @@ define(
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
|
'click .x-save': '_saveQualityProfile'
|
|
|
|
|
'click .x-save' : '_saveQualityProfile',
|
|
|
|
|
'click .x-cancel': '_cancelQualityProfile'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
@ -85,6 +86,21 @@ define(
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
_cancelQualityProfile: function () {
|
|
|
|
|
if (!this.model.has('id')) {
|
|
|
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var promise = this.model.fetch();
|
|
|
|
|
|
|
|
|
|
if (promise) {
|
|
|
|
|
promise.done(function () {
|
|
|
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
_showFieldsView: function () {
|
|
|
|
|
this.fields.show(this.fieldsView);
|
|
|
|
|
}
|
|
|
|
|