mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Merge branch 'MDL-37664-master' of https://github.com/lucisgit/moodle
This commit is contained in:
commit
354ec0691b
7
lib/yui/blocks/blocks.js
vendored
7
lib/yui/blocks/blocks.js
vendored
@ -114,6 +114,13 @@ YUI.add('moodle-core-blocks', function(Y) {
|
||||
var region = node.ancestor('div.'+CSS.BLOCKREGION).get('id').replace(/region-/i, '');
|
||||
if (Y.Array.indexOf(this.get('regions'), region) === -1) {
|
||||
// Must be standard side-X
|
||||
if (right_to_left()) {
|
||||
if (region == 'post') {
|
||||
region = 'pre';
|
||||
} else if (region == 'pre') {
|
||||
region = 'post';
|
||||
}
|
||||
}
|
||||
return 'side-' + region;
|
||||
}
|
||||
// Perhaps custom region
|
||||
|
Loading…
x
Reference in New Issue
Block a user