mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
fix issue #21 - apply widgets once
This commit is contained in:
parent
13ee3d5642
commit
14c0e39b03
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* TableSorter 2.0 - Client-side table sorting with ease!
|
||||
* Version 2.0.25
|
||||
* Version 2.0.26
|
||||
* @requires jQuery v1.2.3
|
||||
*
|
||||
* Copyright (c) 2007 Christian Bach
|
||||
@ -523,7 +523,7 @@
|
||||
dynamicExp += "return 0; ";
|
||||
dynamicExp += "}; ";
|
||||
eval(dynamicExp);
|
||||
cache.normalized.sort(sortWrapper);
|
||||
cache.normalized.sort(sortWrapper); // sort using eval expression
|
||||
if (tc.debug) { benchmark("Sorting on " + sortList.toString() + " and dir " + order+ " time:", sortTime); }
|
||||
return cache;
|
||||
}
|
||||
@ -772,9 +772,10 @@
|
||||
// if user has supplied a sort list to constructor.
|
||||
if (config.sortList.length > 0) {
|
||||
$this.trigger("sorton", [config.sortList]);
|
||||
}
|
||||
} else {
|
||||
// apply widgets
|
||||
applyWidget(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
this.addParser = function(parser) {
|
||||
|
4
js/jquery.tablesorter.min.js
vendored
4
js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user