I use this code for overriding alert function but after i use this to show my custom alert box it show both of them how can i stop the default alert box ? use preventDefault(); ? where?
(function(event) {
var proxied = window.alert;
window.alert = function(str) {
bootbox.alert(str);
return proxied.apply(this, arguments);
};
})();