dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "jquery.tablesorter: Never initialize twice on the same element"
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery.tablesorter
/
jquery.tablesorter.js
diff --git
a/resources/src/jquery.tablesorter/jquery.tablesorter.js
b/resources/src/jquery.tablesorter/jquery.tablesorter.js
index
b73f430
..
c1b83fd
100644
(file)
--- a/
resources/src/jquery.tablesorter/jquery.tablesorter.js
+++ b/
resources/src/jquery.tablesorter/jquery.tablesorter.js
@@
-823,6
+823,10
@@
$table = $( table ),
firstTime = true;
+ // Don't construct twice on the same table
+ if ( $.data( table, 'tablesorter' ) ) {
+ return;
+ }
// Quit if no tbody
if ( !table.tBodies ) {
return;