Issue unsaved changes alerts on IE.
This commit is contained in:
parent
f0f111aced
commit
4a93c5de4b
1 changed files with 3 additions and 3 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue