Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Libraries
-
Labels:None
-
Difficulty:Moderate
-
Affected Branches:MOODLE_20_STABLE
Description
Purpose of this issue to to convert the navbar... the bar that the navigation trees can be docked to on the side of the page so that it uses YUI 3 where ever possible as well as improve it a bit if possible.
Attachments
Issue Links
| This issue has been marked as being related by: | ||||
| MDL-21245 | navbar potential problems |
|
|
|
Hi Petr,
I've just attached a patch that converts the navigation to YUI3 and makes the following changes, could you please have a look at this an just make sure you are happy with the direction that is it going?
Changes:
Still to do:
Cheers
Sam
- Converted the whole navigation and navbar JS to YUI3, the only YUI2 remaining is the panel which I won't upgrade until the overlay is brought out of beta in YUI3
- Separated the code behind the navbar and the navigation trees so that they are two clearly self contained units now
- Redesigned the navbar so that it can be easily overridden in later JS such as by themers
- Moved navbar JS to blocks/blocks.js and navigation tree JS to blocks/global_navigation_tree/navigation.js as it can now be overridden by themers
- Added support into block_base class so that any block can dock with the navbar... this is on by default with user prefs and all
- Separated conf/display parameters into a name spaced structure so that JS included later can override it without any difficulty.
- Tested this in all browsers, despite all themes being broken in IE6 it appears to work nicely
Still to do:- Add a CFG variable to limit/configure use of the navbar
- Find a solution for the navbar when more blocks than can be displayed have been added to it.
- Work with you Petr to find a nice solution to reduce the size of columns with no blocks in them for the holy grail themes
Cheers Sam