<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>Knowing me i hard coded the event into the html<div>I suspect it'll be there if you view source</div><br><br>-------- Original message --------<br>From: Julian Tenney <Julian.Tenney@nottingham.ac.uk> <br>Date: 27/07/2015 10:44 (GMT+00:00) <br>To: For Xerte technical developers <xerte-dev@lists.nottingham.ac.uk> <br>Subject: [Xerte-dev] Re: Would you like to publish dialog <br><br>Is it the case that the code is fired from the window event fired when the editor window is closed? And is it possible that we could use a different event to let the window close before showing the prompt?<br><br>-----Original Message-----<br>From: xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] On Behalf Of Pat Lockley (Pgogy)<br>Sent: 27 July 2015 10:42<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: Would you like to publish dialog<br><br>template_close is some ajax php fired from https://github.com/thexerteproject/xerteonlinetoolkits/blob/dc0a62fdf0ffc8edfc7b08c5b1cb78a2f2c10865/website_code/scripts/template_management.js<br><br>On 2015-07-27 05:36, Julian Tenney wrote:<br>> Small issue with the 'Would you like to publish' alert that pops up <br>> when you close the editor: in FF, when you close the editor, the alert <br>> pops up, but you can't see it as it is behind the editor window, you <br>> have to click again to close the window. I don't understand the php in <br>> template_close.php to try and find an alternative means of firing the <br>> prompt (was thinking it would be on beforeclose event or something <br>> like that, and could do it afterclose?<br>> <br>> This message and any attachment are intended solely for the addressee <br>> and may contain confidential information. If you have received this <br>> message in error, please send it back to me, and immediately delete <br>> it.<br>> <br>> Please do not use, copy or disclose the information contained in this <br>> message or in any attachment. Any views or opinions expressed by the <br>> author of this email do not necessarily reflect the views of the <br>> University of Nottingham.<br>> <br>> This message has been checked for viruses but the contents of an <br>> attachment may still contain software viruses which could damage your <br>> computer system, you are advised to perform your own checks. Email <br>> communications with the University of Nottingham may be monitored as <br>> permitted by UK legislation.<br>> <br>> <br>> _______________________________________________<br>> Xerte-dev mailing list<br>> Xerte-dev@lists.nottingham.ac.uk<br>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev<br><br>--<br>Pgogy Webstuff<br>pgogywebstuff.com<br><br>_______________________________________________<br>Xerte-dev mailing list<br>Xerte-dev@lists.nottingham.ac.uk<br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev<br><br>_______________________________________________<br>Xerte-dev mailing list<br>Xerte-dev@lists.nottingham.ac.uk<br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev<br><br><br><br><br>This message and any attachment are intended solely for the addressee<br>and may contain confidential information. If you have received this<br>message in error, please send it back to me, and immediately delete it. <br><br>Please do not use, copy or disclose the information contained in this<br>message or in any attachment. Any views or opinions expressed by the<br>author of this email do not necessarily reflect the views of the<br>University of Nottingham.<br><br>This message has been checked for viruses but the contents of an<br>attachment may still contain software viruses which could damage your<br>computer system, you are advised to perform your own checks. Email<br>communications with the University of Nottingham may be monitored as<br>permitted by UK legislation.<br><br></body></html>