-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.7
-
MOODLE_27_STABLE
-
I'm having some trouble getting the CSS to load when using the treeview module in a plugin.
Steps to reproduce
- Install moodle/master
- Install my module from github.com/simoncoggins/moodle-tool_capexplorer/ (branch capexplorer-jsmodule-for-mdl-45606)
- Visit Admin > Users > Permissions > Capability explorer
- Notice the context treeview has circular bullet points and is not fully styled. Inspector shows the file:
"[SITEURL]/theme/yui_combo.php?gallery/-1/skin-sam-gallery-sm-treeview/skin-sam-gallery-sm-treeview.js&3.15.0/template-micro/template-micro.js&3.15.0/tree-labelable/tree-labelable.js&3.15.0/tree-openable/tree-openable.js&3.15.0/tree-selectable/tree-selectable.js&3.15.0/view/view.js"
|
is loaded. But looking in the file there is a line:
// Combo resource gallery/-1/skin-sam-gallery-sm-treeview/skin-sam-gallery-sm-treeview.js ($CFG->dirroot/lib/yuilib/gallery/skin-sam-gallery-sm-treeview/skin-sam-gallery-sm-treeview.js) not found!
|
This path is wrong - it shouldn't including 'skin-sam-'.
5. Revert the commit 051548b897dd86bc5386e85c0e66a9fa888fde9d
6. Reload the page
7. Notice the context treeview has arrows and is fully styled. The inspector shows two separate files loaded:
[SITEURL]/theme/yui_combo.php?3.15.0/template-micro/template-micro.js&3.15.0/tree-labelable/tree-labelable.js&3.15.0/tree-openable/tree-openable.js&3.15.0/tree-selectable/tree-selectable.js&3.15.0/view/view.js
|
and
"[SITEURL]/theme/yui_combo.php?gallery/-1/gallery-sm-treeview/assets/skins/sam/gallery-sm-treeview.css"
|
The styles that were missing are found in the second (separate) file.
- is a regression caused by
-
MDL-44361 Update to YUI 3.15.0
-
- Closed
-