mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Fixed popover bug in search and removed popovers when favourites are dragged out.
This commit is contained in:
parent
dcb2ad9d2d
commit
abd05f5105
1 changed files with 7 additions and 2 deletions
|
@ -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),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue