Review : fixes

This commit is contained in:
jdescottes 2013-10-04 23:26:53 +02:00
parent a87b09908d
commit 894486fba6
2 changed files with 6 additions and 3 deletions

View File

@ -41,7 +41,7 @@
<div id="application-action-section" data-pskl-controller="settings" class="sticky-section right-sticky-section">
<div class="sticky-section-wrap">
<iframe src="templates/settings.html"data-iframe-loader="display"></iframe>
<iframe src="templates/settings.html" data-iframe-loader="display"></iframe>
<div class="drawer vertical-centerer">
<div class="drawer-content" id="drawer-container">
<iframe src="templates/settings-application.html" data-iframe-loader="store"></iframe>

View File

@ -23,7 +23,9 @@
var displayFrame = function (iframe) {
var div=document.createElement("div");
div.innerHTML = iframe.contentWindow.document.body.innerHTML;
if (div.children.length == 1) div = div.children[0];
if (div.children.length == 1) {
div = div.children[0];
}
iframe.parentNode.replaceChild(div, iframe);
};
@ -43,7 +45,8 @@
/**
* Retrieve iFrames with a data-attribute data-iframe-loader
* @return {[type]} [description]
* Converts the nodeList to an array for easier manipulation
* @return {Array} array of iframe elements
*/
var getLoaderFrames = function () {
var iframes = document.querySelectorAll("[data-iframe-loader]");