Skip to content
Browse files

Correcting multiselect.js

  • Loading branch information...
1 parent 6afdd7a commit 6855420f771b5115fd482632a9b87f8ac2ebbeec @chdemko chdemko committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 media/system/js/multiselect.js
View
6 media/system/js/multiselect.js
@@ -12,8 +12,8 @@
Joomla.JMultiSelect = new Class({
initialize : function(table) {
this.table = document.id(table);
- if (table) {
- this.boxes = table.getElements('input[type=checkbox]');
+ if (this.table) {
+ this.boxes = this.table.getElements('input[type=checkbox]');
this.boxes.addEvent('click', function(e){
this.doselect(e);
}.bind(this));
@@ -35,4 +35,4 @@
this.last = current;
}
});
-})();
+})();

0 comments on commit 6855420

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