mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 00:36:16 -04:00
Merge pull request #109 from gchq/bug-search
Fixed popover bug in search. Fixes #107
This commit is contained in:
commit
3093794f72
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue