mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Review : fixes
This commit is contained in:
parent
a87b09908d
commit
894486fba6
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
<div id="application-action-section" data-pskl-controller="settings" class="sticky-section right-sticky-section">
|
<div id="application-action-section" data-pskl-controller="settings" class="sticky-section right-sticky-section">
|
||||||
<div class="sticky-section-wrap">
|
<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 vertical-centerer">
|
||||||
<div class="drawer-content" id="drawer-container">
|
<div class="drawer-content" id="drawer-container">
|
||||||
<iframe src="templates/settings-application.html" data-iframe-loader="store"></iframe>
|
<iframe src="templates/settings-application.html" data-iframe-loader="store"></iframe>
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
var displayFrame = function (iframe) {
|
var displayFrame = function (iframe) {
|
||||||
var div=document.createElement("div");
|
var div=document.createElement("div");
|
||||||
div.innerHTML = iframe.contentWindow.document.body.innerHTML;
|
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);
|
iframe.parentNode.replaceChild(div, iframe);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -43,7 +45,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve iFrames with a data-attribute data-iframe-loader
|
* 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 getLoaderFrames = function () {
|
||||||
var iframes = document.querySelectorAll("[data-iframe-loader]");
|
var iframes = document.querySelectorAll("[data-iframe-loader]");
|
||||||
|
Loading…
Reference in New Issue
Block a user