X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=5fb98fbbe5296d32d1993ef5e65dc7861f6d670e;hb=8bd0ea95b1b1df4fbb7e9cd0b599ec6869c87f0e;hp=344b30e2dfc9b933c915b61c04ab5459d9ced8e2;hpb=b07bbed348c8eae3ca8136ba77659426e698974d;p=brisk.git
diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh
index 344b30e..5fb98fb 100644
--- a/web/Obj/brisk.phh
+++ b/web/Obj/brisk.phh
@@ -395,7 +395,7 @@ function eschtml($s)
function esclfhtml($s)
{
- return str_replace("\n", "
", htmlspecialchars($s));
+ return str_replace(" ", " ", str_replace("\n", "
", htmlspecialchars($s)));
}
function langtolng($lang)
@@ -2880,7 +2880,7 @@ function show_notify_ex($text, $tout, $butt, $w, $h, $is_opaque, $block_time)
return sprintf('var noti = new notify_ex(gst,"%s",%d,"%s",%d,%d, %s, %d);', $text, $tout, $butt, $w, $h, ($is_opaque ? "true" : "false"), $block_time);
}
-function show_notify_document($text, $tout, $butt_arr, $w, $h, $is_opaque, $block_time)
+function show_notify_document($text, $tout, $butt_arr, $confirm_func, $w, $h, $is_opaque, $block_time)
{
log_main("SHOW_NOTIFY OPAQUE: ".$text);
@@ -2889,8 +2889,8 @@ function show_notify_document($text, $tout, $butt_arr, $w, $h, $is_opaque, $bloc
$butts .= sprintf("%s'%s'", ($i == 0 ? "" : ","), $butt_arr[$i]);
}
- return sprintf('g_nd = new notify_document(gst, "%s", %d, [ %s ], %d, %d, %s, %d);|',
- escpush($text), $tout, $butts, $w, $h, ($is_opaque ? "true" : "false"), $block_time);
+ return sprintf('g_nd = new notify_document(gst, "%s", %d, [ %s ], %s, %d, %d, %s, %d);|',
+ escpush($text), $tout, $butts, ($confirm_func == NULL ? "null" : $confirm_func), $w, $h, ($is_opaque ? "true" : "false"), $block_time);
}