navigation MDL-25596 Improvements for the navigation blocks JS
authorSam Hemelryk <sam@moodle.com>
Thu, 23 Dec 2010 03:21:07 +0000 (11:21 +0800)
committerSam Hemelryk <sam@moodle.com>
Thu, 23 Dec 2010 03:21:07 +0000 (11:21 +0800)
commit48d8d09063607428d82b596fdad40e45d4d9aae9
treec6f10ab454bd5bc828aeb6135e94ed0ad3bb76e4
parentf056cb544d090d8200062534a05ca724e3d6fa67
navigation MDL-25596 Improvements for the navigation blocks JS

The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
blocks/dock.js
blocks/navigation/block_navigation.php
blocks/navigation/navigation.js [deleted file]
blocks/navigation/styles.css
blocks/navigation/yui/navigation/navigation.js [new file with mode: 0644]
blocks/settings/block_settings.php
lib/navigationlib.php