ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [1/3] ambari git commit: AMBARI-12108. Alert Groups: edit + cancel notitications removes notification target (alexantonenko)
Date Tue, 23 Jun 2015 21:13:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk df1fc98b5 -> 11afa8073


AMBARI-12108. Alert Groups: edit + cancel notitications removes notification target (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/11afa807
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/11afa807
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/11afa807

Branch: refs/heads/trunk
Commit: 11afa8073b64f801a0cb732da535983453127ad9
Parents: 16d86d5
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Jun 24 00:11:34 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Jun 24 00:13:25 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/views/common/editable_list.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/11afa807/ambari-web/app/views/common/editable_list.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/editable_list.js b/ambari-web/app/views/common/editable_list.js
index 579ea66..b1d187d 100644
--- a/ambari-web/app/views/common/editable_list.js
+++ b/ambari-web/app/views/common/editable_list.js
@@ -33,11 +33,15 @@ App.EditableList = Ember.View.extend({
 
   init: function () {
     this._super();
-    this.set('itemsOriginal', Em.copy(this.get('items')));
+    this.updateItemsOriginal();
     this.set('input', '');
     this.set('editMode', false);
   },
 
+  updateItemsOriginal: function () {
+    this.set('itemsOriginal', Em.copy(this.get('items')));
+  }.observes('items'),
+
   onPrimary: function (event) {
     this.set('editMode', false);
     this.set('input', '');


Mime
View raw message