From 4174fc117635bc075f5c9ed75396591411dca869 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 21 Mar 2013 17:46:28 +0800 Subject: [PATCH] MDL-37664 blocks: Unexisting function for RTL in drag & drop --- lib/yui/blocks/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yui/blocks/blocks.js b/lib/yui/blocks/blocks.js index bff92ee735c..f6fbf82531f 100644 --- a/lib/yui/blocks/blocks.js +++ b/lib/yui/blocks/blocks.js @@ -102,7 +102,7 @@ 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 (Y.one('body').hasClass('dir-rtl')) { if (region == 'post') { region = 'pre'; } else if (region == 'pre') {