Layers:Review:Added todos in cheap-templates.js
This commit is contained in:
parent
4eebff804b
commit
b3d1cc5ea6
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
// SUPER CHEAP TEMPLATES !
|
||||
// TODO : Move to js folder
|
||||
// TODO : Put under namespace
|
||||
// TODOC
|
||||
window._ctl = function (event) {
|
||||
var iframe=event.target || event.srcElement, div=document.createElement("div");
|
||||
div.innerHTML = iframe.contentWindow.document.body.innerHTML;
|
||||
if (div.children.length == 1) div = div.children[0];
|
||||
iframe.parentNode.replaceChild(div, iframe);
|
||||
};
|
||||
// cheap template prepare
|
||||
|
||||
window._ctp = function (event) {
|
||||
var iframe=event.target || event.srcElement, script=document.createElement("script");
|
||||
script.setAttribute("type", "text/html");
|
||||
|
|
Loading…
Reference in a new issue