Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Wrong parameter order in function definition

  • Loading branch information...
commit bd22fdfbdb2885b6af26bd1bd72f00a137e2b1d8 1 parent dc9ec4e
authored August 24, 2005

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  lib/javascript-static.js
8  lib/javascript-static.js
@@ -72,9 +72,9 @@ function submitFormById(id) {
72 72
     }
73 73
 }
74 74
 
75  
-function select_all_in(elTagName, elId, elClass) {
  75
+function select_all_in(elTagName, elClass, elId) {
76 76
     var inputs = document.getElementsByTagName('INPUT');
77  
-    inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
  77
+    inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
78 78
     for(var i = 0; i < inputs.length; ++i) {
79 79
         if(inputs[i].type == 'checkbox') {
80 80
             inputs[i].checked = 'checked';
@@ -82,9 +82,9 @@ function select_all_in(elTagName, elId, elClass) {
82 82
     }
83 83
 }
84 84
 
85  
-function deselect_all_in(elTagName, elId, elClass) {
  85
+function deselect_all_in(elTagName, elClass, elId) {
86 86
     var inputs = document.getElementsByTagName('INPUT');
87  
-    inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
  87
+    inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
88 88
     for(var i = 0; i < inputs.length; ++i) {
89 89
         if(inputs[i].type == 'checkbox') {
90 90
             inputs[i].checked = '';

0 notes on commit bd22fdf

Please sign in to comment.
Something went wrong with that request. Please try again.