From 6148e739f995340058ab6e125992d5f5ed5de7f3 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sat, 24 Nov 2018 19:34:58 +0000 Subject: [PATCH] Delete redundant calls Former-commit-id: 056038bee97ac644f4a8becee49b8cb5d02a5552 [formerly d8e380c569b434326d64d94f32e6c0ee91351d3e] Former-commit-id: b1f7f3027a6102c2bc882ba8a6ae225969ba8ccc --- www/js/app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 59f809bb..36f562db 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -2169,17 +2169,11 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module' iframeArticleContent.onload = function () { //iframeArticleContent.onload = function () { }; - $("#articleList").empty(); - $('#articleListHeaderMessage').empty(); - $('#articleListWithHeader').hide(); - $("#prefix").val(""); var articleContent = document.getElementById('articleContent').contentDocument; // Inject the new article's HTML into the iframe articleContent.documentElement.innerHTML = htmlArticle; // Add any missing classes stripped from the tag if (htmlCSS) articleContent.getElementsByTagName('body')[0].classList.add(htmlCSS); - // Allow back/forward in browser history - pushBrowserHistoryState(dirEntry.namespace + "/" + dirEntry.url); //Set relative font size + Stackexchange-family multiplier articleContent.body.style.fontSize = ~zimType.indexOf("stx") ? params.relativeFontSize * 1.5 + "%" : params.relativeFontSize + "%";