mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'WIP-MDL-35512' of git://github.com/nadavkav/moodle
This commit is contained in:
commit
6c4e886426
8
course/yui/toolboxes/toolboxes.js
vendored
8
course/yui/toolboxes/toolboxes.js
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user