Commit 15c5434d by Keval Bhatt Committed by Madhan Neethiraj

ATLAS-2319: UI - deleting a tag which at 25+ position needs a refresh

parent d2244dcb
...@@ -83,7 +83,7 @@ define(['require', ...@@ -83,7 +83,7 @@ define(['require',
}, },
bindEvents: function() { bindEvents: function() {
var that = this; var that = this;
this.listenTo(this.collection, "reset add remove", function() { this.listenTo(this.collection.fullCollection, "reset add remove", function() {
this.tagsGenerator(); this.tagsGenerator();
}, this); }, this);
this.ui.tagsList.on('click', 'li.parent-node a', function() { this.ui.tagsList.on('click', 'li.parent-node a', function() {
...@@ -587,7 +587,7 @@ define(['require', ...@@ -587,7 +587,7 @@ define(['require',
if (urlObj && urlObj.tag && urlObj.tag === that.tag) { if (urlObj && urlObj.tag && urlObj.tag === that.tag) {
Globals.saveApplicationState.tabState.searchUrl = "#!/search"; Globals.saveApplicationState.tabState.searchUrl = "#!/search";
} }
that.collection.remove(deleteTagData); that.collection.fullCollection.remove(deleteTagData);
// to update tag list of search tab fetch typeHeaders. // to update tag list of search tab fetch typeHeaders.
that.typeHeaders.fetch({ reset: true }); that.typeHeaders.fetch({ reset: true });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment