Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wrong parameter order in function definition

  • Loading branch information...
commit bd22fdfbdb2885b6af26bd1bd72f00a137e2b1d8 1 parent dc9ec4e
patrickslee authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/javascript-static.js
View
8 lib/javascript-static.js
@@ -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 = '';
Please sign in to comment.
Something went wrong with that request. Please try again.