1
0
mirror of synced 2024-11-28 08:30:48 +01:00

Merge pull request #109 from gchq/bug-search

Fixed popover bug in search. Fixes #107
This commit is contained in:
n1474335 2017-04-07 22:08:12 +01:00 committed by GitHub
commit 3093794f72

View File

@ -73,7 +73,9 @@ OperationsWaiter.prototype.searchOperations = function(e) {
str = el.value; str = el.value;
while (searchResultsEl.firstChild) { while (searchResultsEl.firstChild) {
try {
$(searchResultsEl.firstChild).popover("destroy"); $(searchResultsEl.firstChild).popover("destroy");
} catch (err) {}
searchResultsEl.removeChild(searchResultsEl.firstChild); searchResultsEl.removeChild(searchResultsEl.firstChild);
} }
@ -209,7 +211,10 @@ OperationsWaiter.prototype.editFavouritesClick = function(e) {
} }
}, },
onEnd: function(evt) { onEnd: function(evt) {
if (this.removeIntent) evt.item.remove(); if (this.removeIntent) {
$(evt.item).popover("destroy");
evt.item.remove();
}
}.bind(this), }.bind(this),
}); });