[Xerte-dev] 2.1 stable, onbeforeunload and Déjà vu?

Ron Mitchell ronm at mitchellmedia.co.uk
Fri Feb 13 10:42:48 GMT 2015


Hi all

I know we've discussed this sort of thing before but doesn't seem easy to
locate and track back through specific steps but anyway case in point


 

You may have noticed I responded to the question and thread on the community
site re moodle integration and helped Jayne get things working including I
think the last issue about logout not working. She hasn't replied and
confirmed yet but it seems very likely that the problem with logout is the
unecessary onbeforeunload="javascript:logout()" in index.php which I'm
pretty sure we've worked through and discussed here before as well as Julian
replying to a previous mention of this on the community forums.

 

I don't personally find it easy to navigate the commits to spot changes in
each branch etc and so not sure whether the rogue code has ever been removed
from 2.1 or removed and somehow crept back. Also I seem to recall that
Julian orginally added that code to try to resolve a firefox issue but not
sure what the final result of that was except that leaving it in causes more
problems than it fixes. I did an install of 2.1 earlier this week and with
hindsight noticed the issue then too but because of an issue with the latest
2.1 and ldap (another story see below) reverted to an earlier 2.1 revision
which must have had that code removed. So a few questions:

 

1. How best to remove the rougue onbeforeunload="javascript:logout()" from
2.1? I could commit the change direct to 2.1 but not sure that's the best
way e.g. it's already removed from develop but obviously develop isn't ready
for production use.

 

2. Are there other differences like this e.g. later changes that aren't
related to the new editor but only in later branches and not in 2.1?

 

3. I did an install of the latest 2.1 revision earlier this week and had
problems when it came to ldap. Login was working but project folders weren't
being created with the username included so breaking. I ended up replace the
install with an older revision which worked immediately. There wasn't time
to unpick the differences but just wondering if anyone recognises that issue
with LDAP and which commit is relevant?

 

Cheers

Ron

 

BTW apologies if two copies of this message reach the list - the first
attempt bounced :-(

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20150213/ddb85a54/attachment.html>


More information about the Xerte-dev mailing list