mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-35512 - Two left pointing arrows appear after clicking "left indent activity/resource" arrow, when in RTL mode
This commit is contained in:
parent
6109f2112c
commit
29c368d4b7
1 changed files with 7 additions and 1 deletions
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) {
|
add_moveleft : function(target) {
|
||||||
var left_string = M.util.get_string('moveleft', 'moodle');
|
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 />')
|
var newicon = Y.Node.create('<img />')
|
||||||
.addClass(CSS.GENERICICONCLASS)
|
.addClass(CSS.GENERICICONCLASS)
|
||||||
.setAttrs({
|
.setAttrs({
|
||||||
'src' : M.util.image_url('t/left', 'moodle'),
|
'src' : M.util.image_url(moveimage, 'moodle'),
|
||||||
'alt' : left_string
|
'alt' : left_string
|
||||||
});
|
});
|
||||||
var moveright = target.one(CSS.MOVERIGHT);
|
var moveright = target.one(CSS.MOVERIGHT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue