Permalink
Browse files

MDL-35512 - Two left pointing arrows appear after clicking "left inde…

…nt activity/resource" arrow, when in RTL mode
  • Loading branch information...
nadavkav committed Sep 29, 2012
1 parent d402e05 commit 152dbe5d5260bd2ec3a5333775989051c3441e1b
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 152dbe5

Please sign in to comment.