From 9ccdf753a3b965ce6fbd0bfe90f5ca5ebfc412af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Mon, 19 May 2014 15:38:48 +0200 Subject: [PATCH] company-start link --- app/webroot/js/dreamjob.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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) {