Skip to content

Commit

Permalink
MDL-37664 course: Fix drag & drop RTL mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies authored and kabalin committed Mar 12, 2013
1 parent 1bfc006 commit 831ecc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/yui/blocks/blocks.js
Expand Up @@ -102,6 +102,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
Expand Down

0 comments on commit 831ecc9

Please sign in to comment.