Permalink
Browse files

Merge branch 'WIP-MDL-35512-M23' of git://github.com/nadavkav/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents 3d9514b + 152dbe5 commit 60c7fc96b226f3a003a31dcb4fea646557cbbb02 @nebgor nebgor committed Nov 9, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 course/yui/toolboxes/toolboxes.js
@@ -459,10 +459,16 @@ YUI.add('moodle-course-toolboxes', function(Y) {
*/
add_moveleft : function(target) {
var left_string = M.util.get_string('moveleft', 'moodle');
+ var moveimage = 't/left'; // ltr mode
+ if ( Y.one(document.body).hasClass('dir-rtl') ) {
+ moveimage = 't/right';
+ } else {
+ moveimage = 't/left';
+ }
var newicon = Y.Node.create('<img />')
.addClass(CSS.GENERICICONCLASS)
.setAttrs({
- 'src' : M.util.image_url('t/left', 'moodle'),
+ 'src' : M.util.image_url(moveimage, 'moodle'),
'alt' : left_string
});
var moveright = target.one(CSS.MOVERIGHT);

0 comments on commit 60c7fc9

Please sign in to comment.