[Xerte-dev] Re: Would you like to publish dialog
Pat Lockley (Pgogy)
info at pgogywebstuff.com
Mon Jul 27 12:15:10 BST 2015
Not by the look of it - as window_reference.edit_window_close(path);
guessing window_reference is a pointer to the main window_reference
window - console.log it?
On 2015-07-27 06:42, Julian Tenney wrote:
> It’s function bunload, but I can’t see how it gets wired up to the
> event: does the window need to still exist, in order to carry out the
> publishing? (in other words can we change the event to one that fires
> after the window has been destroyed)?
>
> FROM: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] ON BEHALF OF Pat L
> (pgogy)
> SENT: 27 July 2015 10:58
> TO: For Xerte technical developers
> SUBJECT: [Xerte-dev] Re: Would you like to publish dialog
>
> Knowing me i hard coded the event into the html
>
> I suspect it'll be there if you view source
>
> -------- Original message --------
> From: Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> Date: 27/07/2015 10:44 (GMT+00:00)
> To: For Xerte technical developers <xerte-dev at lists.nottingham.ac.uk>
>
> Subject: [Xerte-dev] Re: Would you like to publish dialog
>
> 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?
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat
> Lockley (Pgogy)
> Sent: 27 July 2015 10:42
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Would you like to publish dialog
>
> template_close is some ajax php fired from
> https://github.com/thexerteproject/xerteonlinetoolkits/blob/dc0a62fdf0ffc8edfc7b08c5b1cb78a2f2c10865/website_code/scripts/template_management.js
> [1]
>
> On 2015-07-27 05:36, Julian Tenney wrote:
> > Small issue with the 'Would you like to publish' alert that pops up
>
> > when you close the editor: in FF, when you close the editor, the
> alert
> > pops up, but you can't see it as it is behind the editor window,
> you
> > have to click again to close the window. I don't understand the php
> in
> > template_close.php to try and find an alternative means of firing
> the
> > prompt (was thinking it would be on beforeclose event or something
> > like that, and could do it afterclose?
> >
> > This message and any attachment are intended solely for the
> addressee
> > and may contain confidential information. If you have received this
>
> > message in error, please send it back to me, and immediately delete
>
> > it.
> >
> > Please do not use, copy or disclose the information contained in
> this
> > message or in any attachment. Any views or opinions expressed by
> the
> > author of this email do not necessarily reflect the views of the
> > University of Nottingham.
> >
> > This message has been checked for viruses but the contents of an
> > attachment may still contain software viruses which could damage
> your
> > computer system, you are advised to perform your own checks. Email
> > communications with the University of Nottingham may be monitored
> as
> > permitted by UK legislation.
> >
> >
> > _______________________________________________
> > Xerte-dev mailing list
> > Xerte-dev at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev [2]
>
> --
> Pgogy Webstuff
> pgogywebstuff.com
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev [2]
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev [2]
>
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete
> it.
>
> Please do not use, copy or disclose the information contained in this
> message or in any attachment. Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete
> it.
>
> Please do not use, copy or disclose the information contained in this
> message or in any attachment. Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
>
>
> Links:
> ------
> [1]
> https://github.com/thexerteproject/xerteonlinetoolkits/blob/dc0a62fdf0ffc8edfc7b08c5b1cb78a2f2c10865/website_code/scripts/template_management.js
> [2] http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
--
Pgogy Webstuff
pgogywebstuff.com
More information about the Xerte-dev
mailing list