mirror of
https://github.com/moodle/moodle.git
synced 2025-07-10 00:46:32 +02:00
Wrong parameter order in function definition (merged from MOODLE_15_STABLE)
This commit is contained in:
@ -72,9 +72,9 @@ function submitFormById(id) {
|
||||
}
|
||||
}
|
||||
|
||||
function select_all_in(elTagName, elId, elClass) {
|
||||
function select_all_in(elTagName, elClass, elId) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
inputs[i].checked = 'checked';
|
||||
@ -82,9 +82,9 @@ function select_all_in(elTagName, elId, elClass) {
|
||||
}
|
||||
}
|
||||
|
||||
function deselect_all_in(elTagName, elId, elClass) {
|
||||
function deselect_all_in(elTagName, elClass, elId) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
inputs[i].checked = '';
|
||||
|
Reference in New Issue
Block a user