if ($this->_theme->enable_dock && !empty($CFG->allowblockstodock)) {
$this->requires->strings_for_js(array('addtodock', 'undockitem', 'dockblock', 'undockblock', 'undockall', 'hidedockpanel', 'hidepanel'), 'block');
$this->requires->string_for_js('thisdirectionvertical', 'langconfig');
- $this->requires->yui_module('moodle-core-dockloader', 'M.core.dock.loader.initLoader');
+ $this->requires->yui_module('moodle-core-dock-loader', 'M.core.dock.loader.initLoader');
}
if ($this === $PAGE) {
"dockeditem.js"
]
},
- "moodle-core-dockloader": {
+ "moodle-core-dock-loader": {
"jsfiles": [
- "dockloader.js"
+ "loader.js"
]
}
}
blockaction = blocknode.one('.block_action'),
icon = 't/block_to_dock';
- // Must set the image src seperatly of we get an error with XML strict headers
- if (right_to_left()) {
+ // Must set the image src separately of we get an error with XML strict headers
+ if (Y.one(document.body).hasClass('dir-rtl')) {
icon = icon + '_rtl';
}
moveto.setAttribute('alt', M.util.get_string('addtodock', 'block'));
"event-mouseenter",
"event-resize",
"escape",
- "moodle-core-dockloader"
+ "moodle-core-dock-loader"
]
},
- "moodle-core-dockloader": {
+ "moodle-core-dock-loader": {
"requires": [
"escape"
]