MDL-37664 course: Fix drag & drop RTL mode issue

This commit is contained in:
Shamim Rezaie
2013-03-12 15:49:35 +00:00
committed by Ruslan Kabalin
parent 1bfc006d96
commit 831ecc9af3
+7
View File
@@ -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