Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d4677b40599b4766644ca1749e121264a9c7206f 1 parent 5c8860f
@rezaies rezaies authored kabalin committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/yui/blocks/blocks.js
View
7 lib/yui/blocks/blocks.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.