Fix cursor to wait
This commit is contained in:
parent
3c4106f698
commit
c6499c5219
@ -5141,6 +5141,12 @@ class Form
|
|||||||
},';
|
},';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$jsforcursor = '';
|
||||||
|
if (empty($useajax)) {
|
||||||
|
$jsforcursor = '// The call to urljump can be slow, so we set the wait cursor'."\n";
|
||||||
|
$jsforcursor .= 'jQuery("html,body,#id-container").addClass("cursorwait");'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
$formconfirm .= '
|
$formconfirm .= '
|
||||||
resizable: false,
|
resizable: false,
|
||||||
height: "'.$height.'",
|
height: "'.$height.'",
|
||||||
@ -5170,8 +5176,7 @@ class Form
|
|||||||
}
|
}
|
||||||
var urljump = pageyes + (pageyes.indexOf("?") < 0 ? "?" : "") + options;
|
var urljump = pageyes + (pageyes.indexOf("?") < 0 ? "?" : "") + options;
|
||||||
if (pageyes.length > 0) {
|
if (pageyes.length > 0) {
|
||||||
// The call to urljump can be slow, so we set the wait cursor
|
'.$jsforcursor.'
|
||||||
jQuery("html,body,#id-container").addClass("cursorwait");
|
|
||||||
location.href = urljump;
|
location.href = urljump;
|
||||||
console.log("after location.href");
|
console.log("after location.href");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user