Skip to content

Commit

Permalink
MDL-35512 - Two left pointing arrows appear after clicking "left inde…
Browse files Browse the repository at this point in the history
…nt activity/resource" arrow, when in RTL mode
  • Loading branch information
nadavkav committed Nov 1, 2012
1 parent 6109f21 commit 29c368d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion course/yui/toolboxes/toolboxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29c368d

Please sign in to comment.