Permalink
Browse files

Wrong parameter order in function definition (merged from MOODLE_15_S…

…TABLE)
  • Loading branch information...
1 parent 00a4408 commit 8ceb09e0d6d4bf61b0855e66089dc0173ed6acb3 patrickslee committed Aug 24, 2005
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/javascript-static.js
@@ -72,19 +72,19 @@ 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';
}
}
}
-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 = '';

0 comments on commit 8ceb09e

Please sign in to comment.