summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/tableselect.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/tableselect.js')
-rw-r--r--core/misc/tableselect.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js
index 8f91d5e3585..78e8c90fd10 100644
--- a/core/misc/tableselect.js
+++ b/core/misc/tableselect.js
@@ -16,7 +16,9 @@
}
// Keep track of the table, which checkbox is checked and alias the settings.
- var table = this, checkboxes, lastChecked;
+ var table = this;
+ var checkboxes;
+ var lastChecked;
var $table = $(table);
var strings = {'selectAll': Drupal.t('Select all rows in this table'), 'selectNone': Drupal.t('Deselect all rows in this table')};
var updateSelectAll = function (state) {
@@ -71,7 +73,8 @@
var mode = from.rowIndex > to.rowIndex ? 'previousSibling' : 'nextSibling';
// Traverse through the sibling nodes.
- for (var i = from[mode], $i; i; i = i[mode]) {
+ for (var i = from[mode]; i; i = i[mode]) {
+ var $i;
// Make sure that we're only dealing with elements.
if (i.nodeType !== 1) {
continue;