mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Remove BlockUI js plugin. Replaced with few js/css lines.
This commit is contained in:
@@ -10469,19 +10469,11 @@ function get_htmloutput_mesg($mesgstring = '', $mesgarray = [], $style = 'ok', $
|
||||
if ($out) {
|
||||
if (!empty($conf->use_javascript_ajax) && !getDolGlobalString('MAIN_DISABLE_JQUERY_JNOTIFY') && empty($keepembedded)) {
|
||||
$return = '<script nonce="'.getNonce().'">
|
||||
$(document).ready(function() {
|
||||
var block = '.(getDolGlobalString('MAIN_USE_JQUERY_BLOCKUI') ? "true" : "false").'
|
||||
if (block) {
|
||||
$.dolEventValid("","'.dol_escape_js($out).'");
|
||||
} else {
|
||||
/* jnotify(message, preset of message type, keepmessage) */
|
||||
$.jnotify("'.dol_escape_js($out).'",
|
||||
"'.($style == "ok" ? 3000 : $style).'",
|
||||
'.($style == "ok" ? "false" : "true").',
|
||||
{ remove: function (){} } );
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
$(document).ready(function() {
|
||||
/* jnotify(message, preset of message type, keepmessage) */
|
||||
$.jnotify("'.dol_escape_js($out).'", "'.($style == "ok" ? 3000 : $style).'", '.($style == "ok" ? "false" : "true").',{ remove: function (){} } );
|
||||
});
|
||||
</script>';
|
||||
} else {
|
||||
$return = $out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user