]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/answer_edit.html
fixes problem with always showing alert dialog in chrome. Still working out non...
[osqa.git] / forum / skins / default / templates / answer_edit.html
index d7423af6c60e21f38cefc523ffd7c922716d63bb..fbea230c6cff3fd536d8b07486b0aa4abd399197 100644 (file)
             var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
             if($("textarea#editor")[0].value != answer) {
                  if(is_chrome) {
-                     return "You sure you want to leave?  Your work will be lost.";
+                     return "Are you sure you want to leave?  Your work will be lost.";
                  } else {
                      yourWorkWillBeLost(e);
                  }
-                 return false;
             }
         }
         window.addEventListener('beforeunload', beforeUnload, true);
 
-
         var answer = "";
-        var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
         </script>
 {% endblock %}