|
|
@ -3,8 +3,15 @@ define([
|
|
|
|
'Settings/SettingsModelBase'], function (ModelBase) {
|
|
|
|
'Settings/SettingsModelBase'], function (ModelBase) {
|
|
|
|
return ModelBase.extend({
|
|
|
|
return ModelBase.extend({
|
|
|
|
|
|
|
|
|
|
|
|
successMessage: 'Indexer Saved',
|
|
|
|
baseInitialize: ModelBase.prototype.initialize,
|
|
|
|
errorMessage : 'Couldn\'t save indexer'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function () {
|
|
|
|
|
|
|
|
var name = this.get('name');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.successMessage = 'Saved indexer: ' + name;
|
|
|
|
|
|
|
|
this.errorMessage = 'Couldn\'t save indexer: ' + name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.baseInitialize.call(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|