projects
/
project/drupal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
47c19b8
)
Issue #1319420 by nod_: Fixed multiple execution of tableselect.js with nested tables.
author
webchick
Tue, 14 Feb 2012 18:52:40 +0000 (13:52 -0500)
committer
webchick
Tue, 14 Feb 2012 18:52:40 +0000 (13:52 -0500)
misc/tableselect.js
patch
|
blob
|
blame
|
history
diff --git
a/misc/tableselect.js
b/misc/tableselect.js
index
8cf7f36
..
f201a88
100644
(file)
--- a/
misc/tableselect.js
+++ b/
misc/tableselect.js
@@
-2,7
+2,8
@@
Drupal.behaviors.tableSelect = {
attach: function (context, settings) {
- $('table:has(th.select-all)', context).once('table-select', Drupal.tableSelect);
+ // Select the inner-most table in case of nested tables.
+ $('th.select-all', context).closest('table').once('table-select', Drupal.tableSelect);
}
};