From 6f68dcad8c7933fe09b09a127c23754e85ba309a Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 2 Aug 2019 18:21:49 +0100 Subject: [PATCH] Get rid of some buggy alert.hide() Former-commit-id: 43c41b997ee563349278a339dd6bdfa273d69c19 [formerly 8bea9011720f74dd8412b8bcc8dcfbd3c7769e6d] Former-commit-id: cd3784683797bac72c8eb38b550b4d0848519b62 --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index a9bccb58..1ade0b7a 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -2724,7 +2724,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki $('#articleContent').contents().remove(); // Remove from DOM any download alert box that was activated in uiUtil.displayFileDownloadAlert function - $('#downloadAlert').alert('close'); + $('.alert').hide(); var iframeArticleContent = document.getElementById('articleContent'); @@ -3213,7 +3213,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki }); } else { params.isLandingPage = false; - $('#activeContent').alert('close'); + $('.alert').hide(); readArticle(dirEntry); } }).fail(function () {