projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f111a
)
Issue unsaved changes alerts on IE.
author
Tom Hughes
<tom@compton.nu>
Wed, 3 Jun 2009 09:17:29 +0000
(09:17 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 3 Jun 2009 09:17:29 +0000
(09:17 +0000)
app/views/site/edit.rhtml
patch
|
blob
|
history
diff --git
a/app/views/site/edit.rhtml
b/app/views/site/edit.rhtml
index 49e4e94f09554d9390b1417b6e5ae54f851c004e..ccec7a02214cd9d8b97bc33c9c5a86716e343001 100644
(file)
--- a/
app/views/site/edit.rhtml
+++ b/
app/views/site/edit.rhtml
@@
-64,9
+64,9
@@
zoom='14' if zoom.nil?
var winie=false; if (document.all && window.print) { winie=true; }
window.onbeforeunload=function() {
-
if (!changesaved && !winie
) {
-
return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
-
}
+
if (!changesaved
) {
+ return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
+ }
}
function markChanged(a) { changesaved=a; }