In more details:
Usage own "alert" also may be other JS-functions (substitution of standard JS-function).
It would be desirable, that standard dialogues of type "alert" in a client browser, would be in uniform style with all site.
I, like, have localised such place regarding authorisation of users. It is function "webLoginAlert" in ...\assets\snippets\weblogin\weblogin.common.inc.php.
// show javascript alert
function webLoginAlert($msg){
return "<script>window.setTimeout(\"alert('".addslashes(mysql_escape_string($msg))."')\",10);</script>";
It can be substituted on own JS-function.
Somebody used such method?
Perhaps, developers of MODX have already thought up for a long time something about such substitutions?