Commit Graph

298 Commits

Author SHA1 Message Date
Mottie
363f083682 version bump 2014-11-03 10:56:46 -06:00
Mottie
a20b37bfd0 Pager: current filters now updating properly. See #757 2014-11-03 08:05:22 -06:00
Mottie
983a05e128 Pager: fix double "pagerComplete" even on init & initial filter settings
Updated destroy events that are unbound from the table
2014-10-31 15:18:30 -05:00
Mottie
8ad625b45b Pager: updateComplete fires again on non-ajax tables 2014-10-31 12:35:05 -05:00
Mottie
e8452da206 Pager: fix pager initialization with filter widget & display update. Fixes #755 & #757 2014-10-31 11:56:17 -05:00
Mottie
340b39a638 Pager: a pagerComplete event now fires off immediately after initialization 2014-10-30 21:04:53 -05:00
Mottie
9a3078c33b Pager: fix selectorRemove class name parsing 2014-10-30 20:58:36 -05:00
Mottie
3b2742f475 version bump 2014-10-26 19:11:12 -05:00
Mottie
3c0380cad4 Pager: fixedHeight is working properly. Fixes #742 & 729 2014-10-09 18:22:10 -05:00
Mottie
cdaa65f041 Pager: ensure filteredRows is current on page move. See #745 2014-10-09 16:49:49 -05:00
Mottie
0ee530de30 Pager: revert using native javascript for goto select. Fixes #734 2014-10-09 16:10:34 -05:00
Mottie
655b2c9277 Pager: IE requires a value attribute for every option. Fixes #734 2014-10-07 08:14:36 -05:00
Mottie
d6be67e770 Pager: check for dynamically changing ajaxUrl option & cleanup 2014-10-02 11:30:39 -05:00
Mottie
6fbdc1a3b9 Pager: Add url check to allow ajax updating of table. Fixes #730 2014-09-28 08:37:47 -05:00
Mottie
aabb1d6dad Pager: plugin again updates output display on init 2014-09-20 19:50:27 -05:00
Mottie
2d81e3e8f3 Pager: modify & add to widget the code from issue #711 2014-09-17 01:45:27 -05:00
Mottie
db8878ac83 Pager: Fix JSHint code issues from #711 2014-09-16 09:54:30 -05:00
Campbell Allen
74163cf8a9 remove unused variable max_option_size 2014-09-16 08:39:48 +01:00
Campbell Allen
8eb0a6125a extract maxOptionSize to a pager widget configuration option 2014-09-16 08:37:28 +01:00
Campbell Allen
66045f5a25 add focus page number set around current page number 2014-09-16 08:37:28 +01:00
Campbell Allen
3ac996ba60 use a sample of page number links for large collections
Large collections will have a large number of page links. The browser slows noticeably when inserting the large page links collection into the DOM.
2014-09-16 08:37:27 +01:00
Mottie
08bf513acd version bump 2014-09-15 19:44:03 -05:00
Mottie
7747fa9700 Pager: use native javascript to populate & set the goto select. See #711 2014-08-25 20:27:40 -05:00
Mottie
346d8cb64b Pager: update cache & rows copy. Fixes #703 2014-08-12 10:35:46 -05:00
Mottie
526a869b49 version bump & cleanup 2014-08-01 21:31:33 -05:00
Mottie
bb939266a8 Pager: remove selected attribute from page options. See #700 2014-07-31 07:42:21 -05:00
Mottie
39e91a5733 Pager: output can now add user modifiable startRow or page inputs 2014-07-22 07:42:15 -05:00
Mottie
e861f6c3fc Cleanup & version bump 2014-07-17 12:40:11 -05:00
Mottie
4ef7bcd5a8 Pager: initialize without building cache when delayInit true. Fixes #678 2014-07-11 15:01:20 -05:00
Mottie
6de1009af8 version bump 2014-07-04 07:36:50 -05:00
Mottie
2a835930e4 Core/Filter/Pager: Add config.totalPages & modify filterEnd variable to include it. See #670 2014-07-03 10:59:48 -05:00
Mottie
21492fe960 Pager: update c.filteredRows when using ajax. Fixes #670 2014-07-03 09:32:27 -05:00
Mottie
6ece2fe6b4 Pager: filtered rows now equals total rows when ajaxProcessing returns an array. Fixes #667 2014-07-02 15:43:15 -05:00
Mottie
197af4fc31 version bump 2014-06-28 23:04:50 -05:00
Mottie
b1b09f1bb8 Pager: prev & next buttons now disable with 0 filtered pages. Fixes #649 2014-06-22 06:37:02 -05:00
Mottie
d6666e4999 Pager: fix setting of filteredRows from ajaxProcessing. Fixes #649 2014-06-21 19:32:16 -05:00
Mottie
948d8de4f9 Pager: fix use of selectorRemove class name 2014-06-21 11:54:02 -05:00
Mottie
a98584e9c5 Pager: objects returned by ajaxProcessing can now include a filteredRows value. Fixes #649 2014-06-21 01:24:21 -05:00
Mottie
d9cb97f1e6 version bump 2014-06-18 16:07:29 -05:00
Mottie
6042a3ae26 Pager: correctly detach and append jQuery rows. Fixes #650 2014-06-16 22:36:08 -05:00
Mottie
324014283d Pager: specifically target rows to prevent issues with ember scripts. Fixes #638 2014-06-03 07:58:11 -05:00
Mottie
c09945c60c version bump 2014-05-28 19:22:11 -05:00
Mottie
f932d2687e Pager: Fix widgets sometimes not being applied after page change 2014-05-28 12:16:14 -05:00
Juarez Turrini
b7100dc27c Pager: Passing jqxhr for ajaxProcessing function. 2014-05-26 17:04:49 -05:00
Mottie
fcebad5a0f version bump 2014-05-22 07:53:29 -05:00
Mottie
219606e0db Pager: fix pager updating 2014-05-22 07:53:28 -05:00
Mottie
9c0017d44e Core & pager: use detach instead of empty on tbody rows 2014-05-08 12:07:13 -05:00
Mottie
6a6044595e version bump 2014-04-23 19:41:05 -05:00
Mottie
c7607401b8 Filter widget: fix filteredRows count & cleanup 2014-04-23 16:09:26 -05:00
Mottie
9cabd1797a Pager stays on same page after update. Fixes #590 2014-04-23 15:47:54 -05:00
Mottie
6d068d347d version bump 2014-04-20 19:39:59 -05:00
Mottie
5edb87b539 Filter from cache. Fixes #515 2014-04-20 09:27:52 -05:00
Mottie
f65e3dc9b3 Pager: Add pageReset option. Fixes #565 2014-04-20 09:20:43 -05:00
Mottie
7a52f960cc Pager: revert oldAjaxSuccess removal, fixed #540 with deep extend 2014-04-18 11:04:45 -05:00
Mottie
ea3f7a7b80 Pager: remove oldAjaxSuccess function. Fixes #540 2014-04-17 09:46:30 -05:00
Mottie
284b73eaf1 Destroy method now clears cache & pager rows copy 2014-04-10 20:16:22 -05:00
Mottie
8f88f72899 version bump 2014-04-10 10:29:04 -05:00
Mottie
b8cdca396f pager processAjaxOnInit works with jQuery objects. Fixes #572 2014-04-09 07:24:17 -05:00
Mottie
4a984eb681 version bump 2014-03-31 06:14:47 -05:00
Mottie
e25de3c0be Child row updates. Fixes #556 & part of #396
Add tablesorter-hasChildRow
If the last pager row has any child rows, they are now included
Add "filtered" css definition to every theme to hide content
2014-03-31 05:07:19 -05:00
Mottie
fdae3bfcd5 version bump 2014-03-18 18:13:27 -05:00
evanboho
554c5269f7 Fix table reset on pagination change
We were getting an issue we were getting:
1) filtering to, say, 15 rows
2) moving to the last page
3) changing the pagination to more than 15 (or whatever)
4) no rows displayed

This seemed to fix it.
2014-03-18 15:25:37 -07:00
Mottie
35be6689fb cleanup & version bump 2014-03-07 12:53:21 -06:00
Mottie
224d7acb24 Attempt to fix pager row count #455 2014-03-06 21:13:45 -06:00
Mottie
474e446ef8 Events sortEnd & updateComplete fire on empty tables. Fixes #532
Sort events now only fire while sorting, previously they fired when
updating an unsorted table
Updated pager to fire appropriately when using ajax
Added unit tests (non-ajax) events
2014-03-06 20:28:47 -06:00
Mottie
e30d8049ae pager: compare totalRows vs totalPages when preventing an ajax call 2014-03-04 10:40:34 -06:00
Mottie
5d91d5e81a Pager: ensure empty array & array of empty strings evaluates as the same. Fixes #202 2014-03-03 18:25:12 -06:00
Mottie
88dbec0369 Resolve pager issues. Fixes #509.
Fixed several undefined variable javascript errors
Fixed an issue with recursion in the pager widget
Pagers now use "updateCache" method to update the internal cache after
ajax
2014-02-22 11:17:26 -06:00
Mottie
e69101f824 Cleanup & version bump 2014-02-19 13:27:23 -06:00
Mottie
cb40882acc Add showError function. Fixes #486 2014-02-11 00:13:40 -06:00
Mottie
396952b57a Add filter_hideEmpty; Correct pager & widget updating. Fixes #450.
When all rows are removed from the table, ensure widgets are applied
(including refreshing the filter search), and ensure the pager display
updates. Add filter_hideEmpty option to allow setting hiding the filter
row when the table doesn't contain any tbody rows.
2014-02-11 00:09:49 -06:00
Mottie
5d4955aef8 Add API section; update docs, accordion & dates
Add tablesorter API section to docs. Make assorted corrections to docs &
cleanup. Update & consolidate jQuery UI accordion code. Updated some
scripts to use the correct version number (v2.15, not v2.14.6).
2014-02-10 23:55:42 -06:00
Mottie
0e438e4bbd Improve accessibility & add unsorted header class 2014-02-10 23:45:34 -06:00
Mottie
5527bab1c0 pager: fix plugin errors 2014-02-10 23:43:19 -06:00
James Reynolds
b4ab6ebb29 minified and defect in storagekey 2014-01-16 15:53:49 -05:00
James Reynolds
9740577ba5 custom storage keys 2014-01-16 12:56:52 -05:00
Mottie
e3a4f374af Pager: correcting page calculation. Fixes #468 2013-12-20 08:45:34 -06:00
Mottie
c4dceff34e Ensure updateRow & not update is triggered. See issue #217 2013-12-19 11:36:41 -06:00
Mottie
d1a9f2ee22 version bump 2013-12-16 16:02:59 -06:00
Mottie
b34bbba563 Filter row is now included in stickyHeader + pager. Fixes #449 2013-12-15 07:11:26 -06:00
Mottie
d1cfbd7bae Disable pager arrows & show zero in display when totalPages = 0. Fixes #460 2013-12-15 05:57:49 -06:00
Mottie
161c2ad99d Add pager processAjaxOnInit option. Fixes #424 2013-12-15 05:07:22 -06:00
Mottie
eb13fb4b14 Fix pager update when ajax returns no rows. Fixes #456 2013-12-15 04:49:55 -06:00
Mottie
173db948c6 version bump 2013-12-14 10:51:14 -06:00
Mottie
404567f533 Update cache after ajax. Fixes #436 & #437 2013-12-12 18:46:45 -06:00
Mottie
5a1c22a349 Pager filtered rows count properly includes/excludes child rows 2013-12-12 12:23:44 -06:00
Mottie
9a716bec07 filter searches now start from first page. Fixes #456 2013-12-12 08:43:32 -06:00
Mottie
ebe8dd8acb pager will now update when ajax returns no rows. Fixes #456 2013-12-11 16:44:24 -06:00
Mottie
328bba34a7 addRows method now works on an empty table. Fixes #450 2013-12-03 17:55:25 -06:00
Mottie
d81d64f418 version bump & cleanup 2013-12-02 13:26:31 -06:00
Mottie
4aea98040c Pager now outputs zero instead of an empty string for no filter results 2013-12-02 10:11:36 -06:00
Mottie
a98551a98d complete merge of #443 2013-11-27 11:07:52 -06:00
Mottie
472b5a418a Merge branch 'master' of github.com:Mottie/tablesorter 2013-11-27 10:00:01 -06:00
Christopher Thomas
cdb132ec6e add an ajaxCounter to the pager object so it can index each request and refuse to process old requests and only process the last one, this is important because when you execute multiple requests, sometimes the old requests return AFTER the new request has returned, meaning you get a mixed up data, this will stop that, even though really it should cancel the ajax request, but once the server has it, I don't know how you can do that. 2013-11-27 10:43:38 +01:00
Mottie
79bc1be5a5 Complete merge & cleanup #434 2013-11-26 13:40:59 -06:00
Christopher Thomas
d1f70cc522 I modified the location where the pager creates new <td> elements by first asking whether the data contains a td element and if it does, use that instead, this allows the ajax callback to output a fully rendered table with td elements already created, the callback to obtain those elements and just rebuild the columns using those elements, with all the required classnames, attributes, etc. 2013-11-24 21:00:25 +01:00
Mottie
651957606d version bump 2013-11-22 20:01:48 -06:00
Mottie
23ace7cd0b Stop using Array.indexOf due to IE8. Fixes #388 2013-11-22 11:37:16 -06:00
Mottie
ce7e0836c0 version bump 2013-11-09 14:30:58 -06:00
Mottie
e6696b0a1e Fixed initial filter settings when using pager ajax #388 & ajax pager not recognizing column sorting #408 2013-11-08 23:49:30 -06:00
Mottie
cb3ee451b8 pager: calculate correct total rows when countChildRows is true 2013-11-01 13:43:18 -05:00
Mottie
1cc8b0da33 version bump 2013-10-30 17:59:13 -05:00
Mottie
c170dc6669 Added pager countChildRows option. See issue #396 2013-10-30 17:59:09 -05:00
Mottie
8310e01197 version bump 2013-10-18 13:38:46 -05:00
Mottie
6e93d71f9f prevent dividing by zero (pager size) 2013-10-18 07:49:57 -05:00
Mottie
c4f10de366 Added pager widget, pager cleanup & filter widget tweaks for ajax. Fixes #388 2013-10-17 23:14:17 -05:00
Mottie
a386ae24ac No more savePages js error. Fixes #387 2013-10-14 08:25:26 -05:00
Mottie
458669a75d Fixed update issues, see #372 2013-10-11 14:33:31 -05:00
Mottie
ca7124518d version & doc updates 2013-10-10 23:18:33 -05:00
Mottie
a91fd663b6 pager ajax will again target only ths when updating headers 2013-10-10 21:52:44 -05:00
Mottie
8793b9116a pager: catch undefined ajaxData after init. Fixes #326 2013-10-10 17:01:17 -05:00
Mottie
838b4552d5 pager: store object returned from ajaxProcessing for pager output or other fun & exciting things. Fixes #326 2013-10-10 17:00:52 -05:00
Mottie
29c5bf4a4d updateComplete should now fire properly, after an ansynchronous ajax call. Fixes #343 2013-10-10 07:59:38 -05:00
Mottie
7bda49a170 No duplicate ajax calls (removed table update for ajax calls when the server is already doing everything). Fixes #372 2013-10-10 07:59:38 -05:00
Mottie
12ca586011 All class names used for finding elements have new "empty" default values. Fixes #381 2013-10-10 07:59:37 -05:00
Mottie
2993069e04 added pager savePages option. Fixes #345 2013-10-10 07:59:36 -05:00
Mottie
0fd5203515 updated demo url & removed ajax error url comparison; see #349 2013-10-10 07:59:36 -05:00
Mottie
f719e09530 pager modification for grouping widget - fixes #281 2013-10-10 07:59:35 -05:00
Mottie
6b8dd1d800 reverted pull #349. 2013-10-10 07:59:34 -05:00
Mottie
1ace06e96d fixed pager removeRows option error & child rows now properly display. See #348. 2013-10-10 07:59:34 -05:00
Mottie
214bce4e95 merged in pull #336 2013-10-10 07:59:32 -05:00
harryxu
7e8456dc6f Count table head th length after ajaxProcessing. 2013-09-30 22:19:18 +08:00
Rob G
1a5f6b6391 Merge pull request #336 from camallen/skip_server_sort_req
skip ajax request on sort event if serverSideSorting is disabled
2013-09-30 06:46:41 -07:00
Rob G
cb5efc05f0 Merge pull request #324 from camallen/zero_totalRows
0 evaluates to false in a logical context, allow a zero to be returned for totalRows
2013-09-28 22:03:57 -07:00
Campbell Allen
a9d7c01a67 show any ajax request errors to the user in the table 2013-07-02 15:51:13 +01:00
Campbell Allen
d0010fd697 skip ajax request on sort event if serverSideSorting is disabled 2013-06-13 13:14:43 +01:00
Campbell Allen
63b2c6a151 0 evaluates to false in a logical context, allow a zero to be returned for totalRows 2013-06-04 17:54:15 +01:00
Mottie
3c0828712d pager pageSize method properly stores set page size; fixes #287 2013-05-27 09:18:33 -05:00
Mottie
1ea06d5d1a updated minified scripts 2013-05-27 08:53:35 -05:00
Mottie
6e5351d104 update docs, more unit testing & minor tweaks 2013-05-08 23:36:06 -05:00
Mottie
5428e35098 Added ajaxObject option; fixes #280 2013-05-08 17:02:36 -05:00
Mottie
075635c097 Pager + filter now shows 0 matches properly; fixes #297 2013-05-07 10:17:00 -05:00
Mottie
10f24c922a ajaxProcessing return optional jQuery object; updated error handling & theme css 2013-05-07 10:13:50 -05:00
Mottie
800d602786 pagerComplete callback now fires once per change; fixes #291 2013-05-06 09:16:38 -05:00
Mottie
423f124b92 started caching pager controls 2013-05-06 09:09:22 -05:00
Mottie
1162f9c8d5 added filter_filteredRow class name option; used by the pager 2013-04-26 11:22:47 -05:00
Mottie
3500d91be3 final cleanup & version bump 2013-04-12 21:15:57 -05:00
Mottie
33db54c017 updated pager/filter docs with better examples & new changes 2013-04-12 13:02:08 -05:00
Mottie
83c39b4dc6 updated ajaxUrl to accept {page+#} tag; added all pager options to the main docs 2013-04-04 16:32:03 -05:00
Mottie
aa0266c388 added pager customAjaxUrl - See #256 2013-03-27 20:01:39 -05:00
Rob G
6fde718ec1 Merge pull request #256 from Cthulhu59/master
Add parameters to ajx url
2013-03-27 17:16:06 -07:00
Mottie
ba885c436d update to v2.8.0 2013-03-27 18:21:09 -05:00
Mottie
4f310ea3e6 code cleanup & metric demo 2013-03-26 16:16:13 -05:00
Mottie
c9d4d12aa5 stop method propagation at the table - fixes #263 2013-03-23 09:41:33 -05:00
Cthulhu59
6fbce2b35c Add custom ajax url to add custom params to url 2013-03-11 17:14:17 +01:00
Mottie
220f1c580c pager now targets correct page when the table is empty 2013-02-20 01:17:27 -06:00
Mottie
41f4c6c963 use addBack() if supported - fixes #229 2013-02-17 13:29:02 -06:00
Mottie
628b79b0f8 added pageSet method 2013-02-10 11:47:59 -06:00
Mottie
009cf1e92a doc & version updates 2013-01-29 16:42:23 -06:00
Mottie
8ece25e41a added pager pageSize method - issue #218 2013-01-22 10:34:30 -06:00