Skip to content

Commit

Permalink
Incidentally improve #135 and #419
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed May 14, 2019
1 parent c7848c0 commit 6df38cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,14 +833,17 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
$('#articleListHeaderMessage').empty();
$('#articleListWithHeader').hide();
$("#prefix").val("");
iframeArticleContent.onload = function () {
iframeArticleContent.onload = function() {
// The content is fully loaded by the browser : we can hide the spinner
$("#searchingArticles").hide();
// Deflect drag-and-drop of ZIM file on the iframe to Config
var articleContent = document.getElementById('articleContent').contentDocument.documentElement;
var docBody = articleContent.getElementsByTagName('body')[0];
docBody.addEventListener('dragover', handleIframeDragover);
docBody.addEventListener('drop', handleIframeDrop);
iframeArticleContent.contentWindow.onunload = function() {
$("#searchingArticles").show();
};
};
iframeArticleContent.src = dirEntry.namespace + "/" + encodeURIComponent(dirEntry.url);
// Display the iframe content
Expand Down

0 comments on commit 6df38cd

Please sign in to comment.