Commit Graph

33 Commits

Author SHA1 Message Date
Cameron Ball fd5466af99 MDL-54722 navigation: Properly overflow expanded nav trees 2016-06-01 10:15:22 +08:00
Simey Lameze 6759dc35fe MDL-35590 block_navigation: fix remaining issues 2016-01-22 18:48:04 +08:00
John Okely f889544657 MDL-35590 block_navigation: Add aria roles to navigation block tree 2016-01-21 10:18:22 +08:00
Tim Hunt 5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Andrew Nicols b359900cd7 MDL-43277 block_navigation: Trim from the left for long names 2014-04-15 10:24:32 +08:00
Petr Škoda 2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Sam Hemelryk 84192d7836 MDL-40167 dock: converted the dock JS to a YUI shifted module.
The patch converts the dock into a YUI shifter module and at
the same time improves several aspects of its operation.
The features of this patch include:
* Dock Module conversion.
* A loader that ensures we don't include the dock JS or its
  requirements unless actually required.
* We no longer include the dock JS for themes that don't
  enable it.
* Blocks no longer add registration events to the page
  instead a dockable attribute is added to the html and the
  loader looks for that.
* The dock module is properly documented and running YUIDoc
  gives good quality documentation.
* We no longer need the dock module registration or
  subcomponent.
* All events that can be delegated are now delegated.
* Removed unused variables and code left over after fixes.
* Support for docking blocks renderered using the new blocks
  render method. Better support for custom block regions.
2013-07-15 09:46:03 +12:00
Sam Hemelryk 697f7bd701 MDL-30921 blocks: Added a method to inject aria roles into block structure 2012-11-02 10:58:23 +13:00
Itamar Tzadok c8ed28175e MDL-35655 Navigation - Generalized fetching method of navigation object and renderer in navigation block 2012-09-27 14:24:03 -04:00
Petr Skoda f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Sam Hemelryk 887fd0e4c7 Merge branch 'MDL-31831' of git://github.com/stronk7/moodle 2012-03-01 14:34:09 +13:00
Eloy Lafuente (stronk7) 5dbfbacc49 MDL-31831 whitespace clean - take2 2012-03-01 02:20:35 +01:00
Eloy Lafuente (stronk7) 93123b170d MDL-30976 navigation: fix a bunch of incorrect inline @see phpdoc tags 2012-02-29 00:56:41 +01:00
Adrian Greeve 31fde54fbc MDL-30976 - navigation - Updating the api block documentation. 2012-02-27 08:14:54 +08:00
David Penner a0cc337bdb MDL-31160 block_navigation: Fixed incorrect thrid arg to substr. 2012-01-20 11:14:38 +08:00
Petr Skoda b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Petr Skoda 138c76789b MDL-29014 fix a few incorrect uses of strlen and substr 2011-09-10 10:21:31 +02:00
Sam Hemelryk 4c2820fbd8 navigation MDL-26875 Moved course type check into object check and moved JS string call to navigation block where the navigation JS is initialised. 2011-03-18 14:45:10 +08:00
Sam Hemelryk 0022a97f24 blocks-navigation MDL-25596 Fixed notice when block config doesn't already exist 2011-01-12 09:53:08 +08:00
Sam Hemelryk 8e5c23e04f blocks-navigation MDL-25596 Fixed up redundant AJAX calls when navigation was limited by config 2011-01-06 11:50:01 +08:00
Sam Hemelryk 8ad24c1a44 navigation MDL-25596 Fixed whitespace issue 2010-12-23 16:55:52 +08:00
Sam Hemelryk 48d8d09063 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.
2010-12-23 11:21:07 +08:00
Sam Hemelryk 480f906e25 block-navigation MDL-23838 There is now an option that you can enable so that categories in the navigation are links as well. 2010-12-02 07:13:07 +00:00
Sam Hemelryk d8ef60bd72 blocks MDL-24066 Blocks can now choose to be hideable + navigation and settings are no longer hideable. 2010-09-14 02:12:41 +00:00
Petr Skoda 8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Sam Hemelryk a481b2c60c navigation MDL-23031 Removed show my history feature from the navigation.... goodbye! 2010-07-01 03:46:17 +00:00
Sam Hemelryk 1af67ecb1a navigation MDL-23036 Fixed issue when generation was limited to course+categories causing JS to error 2010-07-01 03:33:16 +00:00
Sam Hemelryk 8886223d38 navigation MDL-22420 Removed the reload icon 2010-06-03 07:53:31 +00:00
Sam Hemelryk 7e4617f7a6 navigation-dock MDL-22560 Major changes to he way the dock works
* Themes can now check if a region is completely docked
* Dock now delegates events to improve performance
* Dock now completely YUI3
* No longer uses YUI overlay instead has custom control
2010-05-31 03:33:34 +00:00
Sam Hemelryk ba2789c101 navigation MDL-22425 Fixed courses not being shown to logged in users and removed all traces of mymoodleredirect settings 2010-05-14 06:41:44 +00:00
Sam Hemelryk 88f77c3c26 navigation MDL-22044 Added setting to limit content that is shown on the navigation back into the navigation block 2010-04-21 09:44:16 +00:00
Sam Hemelryk a9535f7945 navigation MDL-21350 Implemented trim options for the navigation block, can now set trim mode (right/left/center) and trim length 2010-04-21 07:05:39 +00:00
Sam Hemelryk 3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00