Skip to content

Commit

Permalink
Merge branch 'wip-MDL-40540-m26' of git://github.com/samhemelryk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 23, 2013
2 parents 01994ec + 83fa6ab commit ae2605e
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ public function initialise_theme_and_output() {
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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
YUI.add('moodle-core-dockloader', function (Y, NAME) {
YUI.add('moodle-core-dock-loader', function (Y, NAME) {

var LOADERNAME = 'moodle-core-dock-loader';

Expand Down Expand Up @@ -37,8 +37,8 @@ M.core.dock.ensureMoveToIconExists = function(blocknode) {
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'));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
YUI.add('moodle-core-dockloader', function (Y, NAME) {
YUI.add('moodle-core-dock-loader', function (Y, NAME) {

var LOADERNAME = 'moodle-core-dock-loader';

Expand Down Expand Up @@ -37,8 +37,8 @@ M.core.dock.ensureMoveToIconExists = function(blocknode) {
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'));
Expand Down
2 changes: 1 addition & 1 deletion lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,6 @@ Y.augment(DOCKEDITEM, Y.EventTarget);
"event-mouseenter",
"event-resize",
"escape",
"moodle-core-dockloader"
"moodle-core-dock-loader"
]
});
2 changes: 1 addition & 1 deletion lib/yui/build/moodle-core-dock/moodle-core-dock-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/yui/build/moodle-core-dock/moodle-core-dock.js
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,6 @@ Y.augment(DOCKEDITEM, Y.EventTarget);
"event-mouseenter",
"event-resize",
"escape",
"moodle-core-dockloader"
"moodle-core-dock-loader"
]
});

This file was deleted.

4 changes: 2 additions & 2 deletions lib/yui/src/dock/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dockeditem.js"
]
},
"moodle-core-dockloader": {
"moodle-core-dock-loader": {
"jsfiles": [
"dockloader.js"
"loader.js"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ M.core.dock.ensureMoveToIconExists = function(blocknode) {
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'));
Expand Down
4 changes: 2 additions & 2 deletions lib/yui/src/dock/meta/dock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"event-mouseenter",
"event-resize",
"escape",
"moodle-core-dockloader"
"moodle-core-dock-loader"
]
},
"moodle-core-dockloader": {
"moodle-core-dock-loader": {
"requires": [
"escape"
]
Expand Down

0 comments on commit ae2605e

Please sign in to comment.