mirror of
https://github.com/unraid/webgui.git
synced 2026-03-15 23:41:29 -05:00
Merge pull request #525 from Squidly271/patch-1
Allow outside click to close popups
This commit is contained in:
@@ -175,7 +175,7 @@ function chkDelete(form, button) {
|
||||
function openBox(cmd,title,height,width,load,func,id) {
|
||||
// open shadowbox window (run in foreground)
|
||||
var run = cmd.split('?')[0].substr(-4)=='.php' ? cmd : '/logging.htm?cmd='+cmd+'&csrf_token=<?=$var['csrf_token']?>';
|
||||
var options = load ? (func ? {modal:true,onClose:function(){setTimeout(func+'('+'"'+(id||'')+'")',0);}} : {modal:true,onClose:function(){location=location;}}) : {modal:true};
|
||||
var options = load ? (func ? {modal:true,onClose:function(){setTimeout(func+'('+'"'+(id||'')+'")',0);}} : {modal:true,onClose:function(){location=location;}}) : {modal:false};
|
||||
Shadowbox.open({content:run, player:'iframe', title:title, height:Math.min(height,screen.availHeight), width:Math.min(width,screen.availWidth), options:options});
|
||||
}
|
||||
function openWindow(cmd,title,height,width) {
|
||||
|
||||
Reference in New Issue
Block a user