[Xerte-dev] Changes to wizard.swf

Smith, John J.J.Smith at gcu.ac.uk
Fri Jul 12 16:19:27 BST 2013


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/20130712/a9d5b35c/attachment.html>


More information about the Xerte-dev mailing list