mirror of
https://github.com/apankrat/nullboard.git
synced 2025-08-11 15:44:56 +02:00
Customize confirm() and alert() a bit
This commit is contained in:
@@ -1698,6 +1698,15 @@
|
||||
return Math.min(Math.max(this, min), max);
|
||||
};
|
||||
|
||||
/*
|
||||
* add a blank line to push 'Prevent this page from opening ...'
|
||||
* tack-on from the actual message we are trying to display
|
||||
*/
|
||||
var confirm_org = window.confirm;
|
||||
var alert_org = window.alert;
|
||||
window.confirm = function(msg) { return confirm_org(msg + "\n "); }
|
||||
window.alert = function(msg) { return alert_org (msg + "\n "); }
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
Reference in New Issue
Block a user