cmailleux 2005/10/12 12:00:58 CEST
Modified files:
core/src/webapp/jsp/jahia/administration work_in_progress.html
Log:
close window on javascript error to avoid keeping window open when trying to
access window.opener.document and not allowed access
Revision Changes Path
1.6 +3 -1
jahia/core/src/webapp/jsp/jahia/administration/work_in_progress.html
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/webapp/jsp/jahia/administration/work_in_progress.html.diff?r1=1.5&r2=1.6&f=h
Index: work_in_progress.html
===================================================================
RCS file:
/home/cvs/repository/jahia/core/src/webapp/jsp/jahia/administration/work_in_progress.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- work_in_progress.html 10 Oct 2005 13:47:28 -0000 1.5
+++ work_in_progress.html 12 Oct 2005 10:00:58 -0000 1.6
@@ -4,7 +4,9 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<script type="text/javascript">
<!--
-
+ window.onerror = function(){
+ window.close();
+ }
function checkWorkInProgress() {
work_in_progress_oldUrl = window.opener.location.href;
waitForCloseOpener();