Skip to content

Commit

Permalink
Merge pull request #109 from gchq/bug-search
Browse files Browse the repository at this point in the history
Fixed popover bug in search. Fixes #107
  • Loading branch information
n1474335 authored Apr 7, 2017
2 parents dcb2ad9 + abd05f5 commit 3093794
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/web/OperationsWaiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ OperationsWaiter.prototype.searchOperations = function(e) {
str = el.value;

while (searchResultsEl.firstChild) {
$(searchResultsEl.firstChild).popover("destroy");
try {
$(searchResultsEl.firstChild).popover("destroy");
} catch (err) {}
searchResultsEl.removeChild(searchResultsEl.firstChild);
}

Expand Down Expand Up @@ -209,7 +211,10 @@ OperationsWaiter.prototype.editFavouritesClick = function(e) {
}
},
onEnd: function(evt) {
if (this.removeIntent) evt.item.remove();
if (this.removeIntent) {
$(evt.item).popover("destroy");
evt.item.remove();
}
}.bind(this),
});

Expand Down

0 comments on commit 3093794

Please sign in to comment.