mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02: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
1 changed files with 2 additions and 2 deletions
|
@ -736,7 +736,7 @@ resource_class.prototype.indent_left = function() {
|
||||||
}
|
}
|
||||||
return false;
|
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) {
|
if (oldindent && oldindent[1] > 0) {
|
||||||
oldindent = oldindent[1];
|
oldindent = oldindent[1];
|
||||||
} else {
|
} else {
|
||||||
|
@ -767,7 +767,7 @@ resource_class.prototype.indent_right = function() {
|
||||||
}
|
}
|
||||||
return false;
|
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) {
|
if (oldindent && oldindent[1] >= 0) {
|
||||||
oldindent = oldindent[1];
|
oldindent = oldindent[1];
|
||||||
var newindent = parseFloat(oldindent) + 1;
|
var newindent = parseFloat(oldindent) + 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue