From eb2cf64c17acd499a447c365ed36edc902ffca6d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 30 Jun 2013 21:24:46 -0700 Subject: [PATCH] Indexer settings messages have indexer name --- UI/Settings/Indexers/Model.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/UI/Settings/Indexers/Model.js b/UI/Settings/Indexers/Model.js index 14bd8ddb0..a0abfd704 100644 --- a/UI/Settings/Indexers/Model.js +++ b/UI/Settings/Indexers/Model.js @@ -3,8 +3,15 @@ define([ 'Settings/SettingsModelBase'], function (ModelBase) { return ModelBase.extend({ - successMessage: 'Indexer Saved', - errorMessage : 'Couldn\'t save indexer' + baseInitialize: ModelBase.prototype.initialize, + initialize: function () { + var name = this.get('name'); + + this.successMessage = 'Saved indexer: ' + name; + this.errorMessage = 'Couldn\'t save indexer: ' + name; + + this.baseInitialize.call(this); + } }); });