[Xerte-dev] Re: Changes to wizard.swf

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Jul 15 11:17:18 BST 2013


Copied, pasted, and committed. I haven't tested it.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 12 July 2013 16:19
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Changes to wizard.swf
Importance: High

Hi,

This has been a bug-bear of mine for a while... holding down shift/pressing play on a sub-node of a page (should open that page) has never worked, but always gone to page 1..

Well I think I have it solved... Can someone add this code to the wizard and then commit if appropriate as I don't have commit rights to the xerte google code project, only the toolkits...

                                                //if shift is down, jump straight to this page
                                                if (Key.isDown(Key.SHIFT)){

                                                                // First we find the top page of the currently selected node
                                                                current_node = tree.selectedNode;
                                                                while (current_node.parentNode.nodeName != "learningObject" && current_node.parentNode.nodeName != undefined) {
                                                                                current_node = current_node.parentNode;
                                                                }

                                                                // Then get the linkID or assign one...
                                                                linkID = current_node.attributes.linkID;
                                                                if ( linkID == undefined){
                                                                                current_node.attributes.linkID = 'PG' + new Date().getTime();
                                                                                linkID = current_node.attributes.linkID;
                                                                }

                                                                if(_root.apache!="false"){

                                                                                url += '_' + linkID;

                                                                }else{

                                                                                url += '&linkID=' + linkID;

                                                                }
                                                }
                                                saveFile();

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130715/6eabf745/attachment-0001.html>


More information about the Xerte-dev mailing list