Close div

This commit is contained in:
Jeremy Mahieu 2020-05-01 23:23:47 +02:00
parent 820b9fd762
commit 8518f98812

View File

@ -283,7 +283,7 @@ weechat.directive('inputBar', function() {
var deleteCallback = function () {
// Image got sucessfully deleted.
// Show toast with delete link
var toastDeleted = $compile('<div class="toast">Successfully deleted.')($scope)[0];
var toastDeleted = $compile('<div class="toast">Successfully deleted.</div>')($scope)[0];
document.body.appendChild(toastDeleted);
setTimeout(function() { document.body.removeChild(toastDeleted); }, 5000);
}