Close div
This commit is contained in:
parent
820b9fd762
commit
8518f98812
@ -283,7 +283,7 @@ weechat.directive('inputBar', function() {
|
|||||||
var deleteCallback = function () {
|
var deleteCallback = function () {
|
||||||
// Image got sucessfully deleted.
|
// Image got sucessfully deleted.
|
||||||
// Show toast with delete link
|
// 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);
|
document.body.appendChild(toastDeleted);
|
||||||
setTimeout(function() { document.body.removeChild(toastDeleted); }, 5000);
|
setTimeout(function() { document.body.removeChild(toastDeleted); }, 5000);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user