diff --git a/app/webroot/js/dreamjob.js b/app/webroot/js/dreamjob.js index 2743c42..437fd6c 100755 --- a/app/webroot/js/dreamjob.js +++ b/app/webroot/js/dreamjob.js @@ -32,12 +32,14 @@ var global_load = null; function stopLoad(e) { if (!e) e = window.event; - if (e.preventDefault) - e.preventDefault(); - if (e.stopPropagation) { - e.stopPropagation(); - } else { - e.cancelBubble = true; + if (e) { + if (e.preventDefault) + e.preventDefault(); + if (e.stopPropagation) { + e.stopPropagation(); + } else { + e.cancelBubble = true; + } } } function event(where) {