\r
if($("textarea#editor")[0].value != "") {\r
if(is_chrome) {\r
- return "You sure you want to leave? Your work will be lost.";\r
+ return "Are you sure you want to leave? Your work will be lost.";\r
} else {\r
yourWorkWillBeLost(e);\r
}\r
- return false;\r
}\r
\r
var commentBoxes = $("textarea.commentBox");\r
} else {\r
yourWorkWillBeLost(e);\r
}\r
- return false;\r
}\r
}\r
}\r
window.addEventListener('beforeunload', beforeUnload, true);\r
-\r
- var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;\r
</script>\r
<noscript>\r
<style>\r