From 6855420f771b5115fd482632a9b87f8ac2ebbeec Mon Sep 17 00:00:00 2001 From: chdemko Date: Sun, 20 Nov 2011 16:46:02 +0100 Subject: [PATCH] Correcting multiselect.js --- media/system/js/multiselect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/media/system/js/multiselect.js b/media/system/js/multiselect.js index cb85cb722c..dfa2d203ad 100644 --- a/media/system/js/multiselect.js +++ b/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; } }); -})(); \ No newline at end of file +})();