mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
lib/ajax/ MDL-25675 Use className instead of classList.toString()
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk> Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
This commit is contained in:
parent
46f4c3932f
commit
218a465980
@ -736,7 +736,7 @@ resource_class.prototype.indent_left = function() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
|
||||
var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
|
||||
if (oldindent && oldindent[1] > 0) {
|
||||
oldindent = oldindent[1];
|
||||
} else {
|
||||
@ -767,7 +767,7 @@ resource_class.prototype.indent_right = function() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
|
||||
var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
|
||||
if (oldindent && oldindent[1] >= 0) {
|
||||
oldindent = oldindent[1];
|
||||
var newindent = parseFloat(oldindent) + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user