Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3778a0
)
MDL-37664 course: Fix drag & drop RTL mode issue
author
Shamim Rezaie
<support@foodle.org>
Thu, 31 Jan 2013 10:45:50 +0000
(10:45 +0000)
committer
Ruslan Kabalin
<r.kabalin@lancaster.ac.uk>
Tue, 12 Mar 2013 15:43:40 +0000
(15:43 +0000)
lib/yui/blocks/blocks.js
patch
|
blob
|
blame
|
history
diff --git
a/lib/yui/blocks/blocks.js
b/lib/yui/blocks/blocks.js
index
edb655f
..
df4acf1
100644
(file)
--- a/
lib/yui/blocks/blocks.js
+++ b/
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
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
return 'side-' + region;
}
// Perhaps custom region