Remove BlockUI js plugin. Replaced with few js/css lines.

This commit is contained in:
ldestailleur
2025-05-06 19:15:13 +02:00
parent 52acd2cfac
commit 095905670a
25 changed files with 149 additions and 813 deletions

View File

@@ -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;
}