]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question.html
fixes problem with always showing alert dialog in chrome. Still working out non...
[osqa.git] / forum / skins / default / templates / question.html
index 7afcf407e372a7d94e72f15ad5f3745053140850..010ed4369482d964d08a65ed9014b791faae0e47 100644 (file)
 \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