Skip to content

Commit 3ba47bf

Browse files
save file
1 parent 8945811 commit 3ba47bf

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎utils/editors/html/iframe-sandbox/iframe-sandbox.html‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<input value=sandbox type=button>
5656

57-
<div class=menu style='display:none;height:350px'>
57+
<div part=menu class=menu style='display:none;height:350px'>
5858

5959
<div class=menu-title>
6060
iframe sandbox
@@ -188,12 +188,13 @@
188188
var nitem = item.cloneNode(true);
189189
nitem.id = value;
190190
$(nitem,'label').textContent = value;
191-
$(nitem,'[type=checkbox]').checked = (def.indexOf(value)!=-1)
191+
$(nitem,'[type=checkbox]').checked = (preset.standard.indexOf(value)!=-1)
192192
list.append(nitem);
193193
chk[value] = $.chkbox(shadow,`#${value}`,chk.click);
194194

195195
});
196196

197+
btn.preset('standard');
197198

198199
}//initdom
199200

@@ -214,14 +215,9 @@
214215

215216
chk.click = function(chk){
216217
//console.log(chk);
217-
/*
218-
if(chk.id=='allow-modals'){
219-
output.chk['allow-modals'].checked = chk.checked;
218+
if(output.chk[chk.id]){
219+
output.chk[chk.id].checked = chk.checked;
220220
}
221-
if(chk.id=='allow-popups'){
222-
output.chk['allow-popups'].checked = chk.checked;
223-
}
224-
*/
225221

226222
}//click
227223

0 commit comments

Comments
 (0)