Commit Graph

1412 Commits

Author SHA1 Message Date
Rob Garrison
535c7c43c3 Filter: use replacement character instead of null 2015-12-25 11:57:24 -06:00
Rob Garrison
1410e292ff Core: fix typo in comments 2015-12-22 10:22:36 -06:00
Rob Garrison
13068454c5 Core: add multiple widgets from table class. Fixes #1109 2015-12-22 10:19:10 -06:00
Rob Garrison
e76e540982 Core: fix time parser detection. See #1107 2015-12-18 17:45:55 -06:00
Rob Garrison
0648c8025c ColumnSelector: prevent remove widget js error. Fixes #1106 2015-12-16 20:12:59 -06:00
Rob Garrison
03db8eec0e version bump 2015-12-13 16:24:42 -06:00
Rob Garrison
60282f0787 Core & Filter: Add duplicateSpan option
Core:
- Added `duplicateSpan` option (default is `true`).
- Renamed `$.tablesorter.formatSortingOrder` to `$.tablesorter.getOrder`.
- Include `table` in console.error if an issue is encountered during
  initialization.
- Clean up warning when no parser is found for given data.
- Fix `config.sortVars` js error for non-existent header cells.
- Added unit tests.
- Added "example-colspan.html" demo.

Filter:
- Filters that span multiple columns now have the correct data-column set.
- Consolidated code that parsed data-column ranges into `findRange` function.
- Added unit tests
2015-12-13 16:23:48 -06:00
Rob Garrison
36a8b5a28e Math: fix changed flag to not break calculations. See #1083 2015-12-13 09:23:49 -06:00
Rob Garrison
d6ff627aee Math: math_none can now be set to an empty string 2015-12-13 06:56:38 -06:00
Rob Garrison
de414635e5 Core: prevent js error if widget doesn't exist 2015-12-13 06:32:37 -06:00
Rob Garrison
fb16792adf Math: fix data-math-filter error. See #1083 2015-12-13 05:52:45 -06:00
Rob Garrison
4e1c96d437 Math: lots of tweaks. See #1083
- Initial calculation performed once - changed binding to either "filterEnd"
  or "pagerComplete", not both.
- Added change flag so a cache update is only performed when cell content
  inside of a sortable tbody was modified.
- Fix data-math-filter on "all" cell calculation with fixes to getRow &
  getColumn functions so that filters get priority over the "filtered" row
  check.
2015-12-12 20:42:34 -06:00
Rob Garrison
e5cffec185 Filter: trigger "filterBeforeEnd" for widget binding 2015-12-12 20:42:27 -06:00
Rob Garrison
0953392cdb Core: trigger "sortBeforeEnd" for widget binding 2015-12-12 20:42:20 -06:00
Rob Garrison
d2eae00ee3 Filter: prevent edge case js error 2015-12-12 15:38:46 -06:00
Rob Garrison
5494d79953 Core & editable: ensure table initialized before using updateCell. See #1099 2015-12-10 23:03:34 -06:00
Rob Garrison
84d4f72ad3 Core: Add triggered removeWidget method & update docs
Docs for applyWidgetId also updated
2015-12-10 22:51:33 -06:00
Rob Garrison
ab07e59b8f Filter: prevent insideRange searches on "all" columns 2015-12-10 20:09:51 -06:00
Rob Garrison
a66267e6bf Core: Add applyWidgetId name to widgets option 2015-12-10 17:25:04 -06:00
Rob Garrison
fdd82f847e Core: applyWidgetId now properly initializes a widget 2015-12-10 17:13:05 -06:00
Rob Garrison
7f027e813c Math: use core textExtraction on cells. See #1098 2015-12-09 13:37:52 -06:00
Rob Garrison
1bb9a5d1b2 Math: Limit tbody cell processing & use cellIndex whenever possible. See #1048 2015-12-04 00:48:41 -06:00
Rob Garrison
a9ec53ee19 Core: After init, computeColumnIndex adds "data-column" to mismatch indexes
This only occurs when the function is called externally and a `config`
parameter is passed to the function, otherwise a "data-column" attribute
is added to all cells. This change will minimize DOM manipulation.
2015-12-04 00:42:26 -06:00
Rob Garrison
d196092339 Core: fix cache debug log for multiple tbodies 2015-12-03 20:49:52 -06:00
Rob Garrison
9adc837253 Filter: restore column specific default filters. Fixes #1088
The code was accidentally removed in v2.24.4
2015-12-02 13:36:47 -06:00
Rob Garrison
b84b38e6fa Parser: return true for header checkbox to work in IE8 2015-12-02 07:38:22 -06:00
Rob Garrison
6a738fb8bd Core: Fix updateCell issue
If "updateCell" is triggered on a thead cell, or bubbles to an outer table, tablesorter no longer gets stuck in an "isUpdating" loop
2015-12-01 19:56:02 -06:00
Rob Garrison
a8fb980153 Core: prevent js error - calling "applyWidgetId" on non-existant widget 2015-12-01 19:45:44 -06:00
Rob Garrison
87a10d6987 Global: Use triggerHandler to prevent event bubble to any outer table 2015-12-01 19:38:56 -06:00
Rob Garrison
78c23a0bc1 Core: show parsed data in debug log. See #1084 2015-12-01 08:14:19 -06:00
Rob Garrison
3dfed568de Parsers: checkbox row class & header work with sorter-false. See #1090 2015-11-30 12:07:58 -06:00
Rob Garrison
54e31d1941 Print: popup made resizable & scrollable. See #1081 2015-11-30 07:52:57 -06:00
Rob Garrison
8a3c315f0c Math: Add "data-math-filter" override of math_rowFilter. See #1083 2015-11-23 23:29:33 -06:00
Rob Garrison
87b34de41c Filter: prevent js error when columnFilters false. Fixes #1091 2015-11-23 21:37:50 -06:00
Rob Garrison
fe23f7c0c1 version bump 2015-11-22 22:05:06 -06:00
Rob Garrison
a8d9c2bbbe Math: ensure internal updating flag gets cleared. Fixes #1083 2015-11-22 21:44:10 -06:00
Rob Garrison
06faff7764 Core: while detecting parsers, use cssIngoreRow; stop after 50 rows 2015-11-22 21:24:21 -06:00
Rob Garrison
a85a2a5a66 Parsers: don't use $.extend for simple additions 2015-11-22 21:21:50 -06:00
Rob Garrison
a5d7b34fd4 Math: Spelling corrections to math_rowFilter option. See 1083 2015-11-22 20:14:53 -06:00
Rob Garrison
8967627713 Math: add rowFilter option. See #1083 2015-11-22 16:22:05 -06:00
Rob Garrison
c10d4a334f Parser: Add alternate date range parser & update filter insideRange 2015-11-20 23:14:02 -06:00
Rob Garrison
8f810ef4d9 Parser: date month - other added language data no longer removed 2015-11-20 23:09:47 -06:00
Rob Garrison
684cc1faa8 Pager: Fix page set issues (with filter widget). See #1085 2015-11-20 09:30:21 -06:00
Rob Garrison
93dcd20f14 Pager (widget): clean up code 2015-11-20 09:27:22 -06:00
Rob Garrison
9b74e12485 Pager: Fix other page set issues (no filter widget). See #1085 2015-11-19 09:41:35 -06:00
Rob Garrison
94dadd9c47 Pager: initial page no longer ignored (no filter widget). Fixes #1085 2015-11-18 18:58:50 -06:00
Rob Garrison
4ad7117b72 Print: Fix print & close button actions 2015-11-17 14:21:17 -06:00
Rob Garrison
7e7a57d212 Print: Add print_now option. See #1081 2015-11-17 13:45:00 -06:00
Rob Garrison
f4f398b48a Core: prevent "tablesorter-ready" from firing multiple times in a row 2015-11-14 22:26:08 -06:00
Rob Garrison
2cb01b4ec2 Docs: update utility option section 2015-11-14 22:17:29 -06:00
Rob Garrison
8a9e52827e Parser: input-select updates. See #971
- Prevent javascript error.
- Include thead checkbox code to update tbody column checkboxes.
- Add thead checkbox updating with indeterminate state.
2015-11-14 22:05:44 -06:00
Rob Garrison
7a89f5323e SortTbodies: use config parameter for numeric sorting. See #1082 2015-11-13 01:37:40 -06:00
Rob Garrison
fc04ceaad6 version bump 2015-11-10 21:35:33 -06:00
Rob Garrison
a203ac5f52 version bump 2015-11-10 15:27:30 -06:00
Rob Garrison
ea13f6d256 Filter: code cleanup 2015-11-10 15:24:02 -06:00
Rob Garrison
4385522e32 Math: Avoid nested table math cells.
See http://stackoverflow.com/q/33631298/145346
2015-11-10 14:43:25 -06:00
Rob Garrison
f51b39388a Filter: selectSource option now accepts an array of objects 2015-11-10 14:40:26 -06:00
Rob Garrison
bf98c96265 Parser: Add file-extension parser 2015-11-09 15:09:12 -06:00
Rob Garrison
08735db313 Pager: clear tbody prior to calling ajaxProcessing 2015-11-09 11:42:42 -06:00
Rob Garrison
d56c621456 Filter: prevent OR filter type from splitting up regex string. See #1070 2015-11-09 10:50:49 -06:00
Rob Garrison
2ac96256ac Docs: Add clarification & missing possible values. See #1070 2015-11-09 07:01:24 -06:00
Rob Garrison
65867145df Sort2Hash: Add 2 utility functions to simplify hash processing 2015-11-08 20:47:30 -06:00
Rob Garrison
f3449a8e7f Sort2Hash: make functions accessible 2015-11-08 17:33:55 -06:00
Rob Garrison
60ea78eea6 Toggle: Add widget to enable/disable sort & filter 2015-11-08 10:45:25 -06:00
Rob Garrison
93514b80f4 HeaderTitles: update aria-label usage 2015-11-08 08:42:23 -06:00
Rob Garrison
9bf590edb8 Core: Add sortDisabled language setting; used in aria-labels 2015-11-08 08:36:13 -06:00
Rob Garrison
9607fed175 Build: fix uglify comment removal & update dist folder 2015-11-06 13:41:19 -06:00
Rob Garrison
2ec0393b07 Group: Include group & row data parameter in group_formatter. Fixes #1077 2015-11-06 13:28:25 -06:00
Rob Garrison
001bcae652 Core: sortRestart works again with multi-row headers. Fixes #1074 2015-11-06 12:41:00 -06:00
Rob Garrison
ac5818294d Filter: convert filters to strings using conventional method 2015-11-05 10:11:12 -06:00
Rob Garrison
0c99d0c6e3 version bump 2015-11-04 20:15:37 -06:00
Rob G
16d0663349 Merge pull request #1073 from scr34m/updateall-resizable
Fix resizable widget bindings after tablesorter updateAll event
2015-11-04 19:55:22 -06:00
Rob Garrison
f12049f879 Filter: setFilter "apply" parameter now defaults to true. See #1071 2015-11-04 19:42:29 -06:00
Rob Garrison
f80d3d4c2c Core: fix sortRestart preventing sort. Fixes #1072 2015-11-04 19:31:02 -06:00
Rob Garrison
d8d5908d41 Core: jQuery filter element parameter not defined in v1.2.6 2015-11-04 12:35:57 -06:00
Rob Garrison
236d633922 Filter: convert filter array to include all strings. Fixes #1070 2015-11-04 12:34:15 -06:00
Gabor Gyorvari
b73162d0c0 Fix resizable widget bindings after tablesorter updateAll event
After updating tablesorter with updateAll event it will reinitalize all widget, but resizable initalized only once internally and there after it was not possible to change columns widths.
2015-11-04 19:05:17 +01:00
Rob Garrison
73153f2bdf version bump 2015-11-02 12:36:00 -06:00
Rob Garrison
9bfde43c8f version bump 2015-11-02 10:50:31 -06:00
Rob Garrison
66aede3654 Group: add optimizations from pull #830 2015-11-02 01:21:29 -06:00
Rob Garrison
4fc923ec78 Parsers: globalization tweaks & new parser
Make month & weekday Globalize ready.
globalization parser now caches the Globalize object in a "Globalize" option
Add "weekday-index" parser
Update demos
2015-11-02 01:19:44 -06:00
Rob Garrison
dbcd306ff2 Core: cache shortDate parser & time parser extracts time 2015-11-01 23:29:18 -06:00
Rob Garrison
b2ae0d194d Print: rows option now accepts custom css selectors 2015-11-01 12:06:39 -06:00
Rob Garrison
52ec39464a Sort2Hash: Remove history push state 2015-10-31 11:37:55 -05:00
Rob Garrison
1d813bd766 version bump 2015-10-31 11:06:09 -05:00
Rob Garrison
6905b9bb3e Grunt: update build files 2015-10-31 10:20:22 -05:00
Rob Garrison
b31f786caa Sort2Hash: update to include pager & filter parameters 2015-10-31 10:20:14 -05:00
Rob Garrison
e7988cf5a8 Pager: parse page size updates 2015-10-30 17:02:04 -05:00
Rob Garrison
028631a675 Globalize parser: fix jscs reported issues 2015-10-30 15:30:23 -05:00
Rob Garrison
cd45d21204 View: fix jscs reported issues 2015-10-30 15:29:13 -05:00
Rob Garrison
e882688936 ColumnSelector: fix jscs reported issues 2015-10-30 15:28:32 -05:00
Rob Garrison
9da745bf5b Pager: parse page number to prevent user seeing NaN 2015-10-30 15:25:38 -05:00
Rob Garrison
b8880d65f9 Core: Add widget from class before adding options 2015-10-29 23:56:02 -05:00
Rob Garrison
cf542ac75f Group: Update header in pager with removeRows:true. Fixes #1035 2015-10-28 15:48:16 -05:00
Rob Garrison
4853615569 Scroller: adjust code for insane (OCD) people 2015-10-28 15:22:32 -05:00
Justin F. Hallett
276f3fb650 Fix curlies for grunt and sane poeple 2015-10-28 14:17:29 -06:00
fire-wally
53de5b83e0 Fix scroller_barWidth issue on iOS
This change fixes an issue where the last column header gets cut off on MobileSafari (possibly other mobile browsers?). 

MobileSafari doesn't allocate horizontal space for the vertical scollbar of vertically-scrolling regions, so the getBarWidth() function correctly returns 0 on iOS. The previous expression of (tsScroller.getBarWidth() || 15) incorrectly evaluates that 0 as "falsy" and sets scroller_barSetWidth to 15, which cuts off the last column header. This change explicitly tests for a null result from tsScroller.getBarWidth() and only applies 15px in that case 

I also expanded that section of code a little bit and modified the comment to make it more clear what's going on
2015-10-28 14:33:44 -05:00
Rob Garrison
63374355ca Core: Fix parser detect of columns that don't exist due to colspan
And prevent error if config.sortVars is undefined

See #746 & #1047
2015-10-27 20:45:27 -05:00
Rob Garrison
94c2ce700a Pager: destroyPager reveals all rows. Fixes #1055
Partial reversion of 285cef1e70
2015-10-27 17:31:50 -05:00
Rob Garrison
85997765d7 Grunt: update build files 2015-10-27 17:01:07 -05:00
Rob Garrison
2ca475ab8a ColumnSelector: Extra rows & colspans now supported in thead & tfoot. Fixes #501 2015-10-27 11:45:43 -05:00
Rob Garrison
e5a9de1896 Filter: prevent error in formatterUpdated. Fixes #1056 2015-10-27 07:24:00 -05:00
Rob Garrison
7cdd524d83 Core: maintaining support for IE7-8, until 1/12/16
See https://support.microsoft.com/en-us/gp/microsoft-internet-explorer
2015-10-26 18:43:19 -05:00
Rob Garrison
d77ca61605 Merge branch 'viewWidget' 2015-10-26 12:18:22 -05:00
Rob Garrison
093ba477ce View: cleanup & merge 2015-10-26 12:16:52 -05:00
Rob Garrison
7fa7907953 Parser: Globalize parser now allows a different language per column 2015-10-26 10:56:01 -05:00
Justin F. Hallett
6c0fa3bdcf Add Widget View, start on the documentation 2015-10-26 09:06:56 -06:00
Rob Garrison
612c76e5ee Pager: add "all" setting for pageSize. See #1055 2015-10-25 20:55:48 -05:00
Rob Garrison
e3d2fd9a17 Group: Improve compatibility with jQuery Globalize
Added `group_time24Hour` & `group_dateInvalid` options

Modified `group_months`, `group_week` and `group_time` options.
2015-10-25 20:10:43 -05:00
Rob Garrison
a1c9e95639 Lazyload: add lazyload widget 2015-10-25 19:52:32 -05:00
Rob Garrison
5d4529c37d Global: call internal functions directly; stop using trigger 2015-10-22 16:41:34 -05:00
Rob Garrison
035a394459 Core: Add "tablesorter-ready" event 2015-10-22 15:10:05 -05:00
Rob Garrison
2409e830b6 Core & headerTitles: internalize sort counter & fix spanned sorts 2015-10-21 11:03:14 -05:00
Rob Garrison
b8e2b65493 Core: sortAppend now accepts an object of column references
See http://stackoverflow.com/q/33177910/145346
2015-10-20 12:47:05 -05:00
Rob Garrison
d1d7da2ac2 Core: fix multisort indicators. Fixes #1005, again
There is now a check to verify that the targeted column is in the sortList, this includes a cell with a colspan that may be outside of the included sort
2015-10-20 06:25:34 -05:00
Rob Garrison
d50f561969 Chart: fix chart_layout column indexing 2015-10-19 22:09:59 -05:00
Rob Garrison
d5a9fb6f81 Core: add rowFilter parameter to getColumnText 2015-10-19 20:54:56 -05:00
Rob Garrison
9d7f0fb26c ColumnSelector: Add mediaqueryHidden option. Resolves #964 2015-10-19 11:49:21 -05:00
Rob Garrison
921631397c Grunt: update build files 2015-10-18 13:24:13 -05:00
Rob Garrison
1bb00280ed Filter & stickyHeaders: hideFilters applies to stickyHeaders again. Fixes #1050 2015-10-18 13:21:55 -05:00
Rob Garrison
726edc7c77 SortTbodies: moved config.strings defaults to $.tablesorter.strings
updated to match changes to core
2015-10-18 13:21:54 -05:00
Rob Garrison
2b55fca6dd Core: reformat structure & expand variable names
All functions are now public, but some remain undocumented
2015-10-18 13:21:46 -05:00
Rob Garrison
55d19b3a95 Core & Filter: Add "entire column colspan" support. See #746 & #1047 2015-10-17 15:15:36 -05:00
Rob Garrison
c7d4395c85 Math: Include config parameter in math equations
Fixes javascript error
2015-10-17 10:05:55 -05:00
Rob Garrison
9c905bdc9c Print: Add print delay; allows browser to render print preview 2015-10-17 09:37:56 -05:00
Rob Garrison
f242135db0 Print: Include css to hide filter rows. Fixes #1046 2015-10-17 09:36:37 -05:00
Rob Garrison
be69ff58a7 Math: Add math_none option 2015-10-14 21:20:49 -05:00
Rob Garrison
a1a202a4c6 Math: detach table prior to indexing all cells. See #1048 2015-10-14 20:46:42 -05:00
Rob Garrison
c317ded727 Core: use plain js to set index attr & remove unused variable. See #1048 2015-10-14 20:45:46 -05:00
Rob Garrison
23760ef2c3 Print: internal variable tweaks 2015-10-14 12:51:27 -05:00
Rob Garrison
1219e49d30 Output: do not include nested table headers with parent. Fixes #1040 2015-10-12 07:32:07 -05:00
Rob Garrison
575b92221a Output: correct formatContent function comment 2015-10-09 11:08:56 -05:00
Rob Garrison
1c5c3415ad Math: fix out-of-scope time variable 2015-10-06 21:06:25 -05:00
Rob Garrison
701ad94308 Merge branch 'LvLynx-master' 2015-10-06 20:55:51 -05:00
Rob Garrison
ab5258471d Math: more tweaks for better compression 2015-10-06 20:54:07 -05:00
Rob Garrison
01442edbf2 Math: merge in #1027 & tweak changes 2015-10-06 20:54:01 -05:00
Rob Garrison
e2ffab45a0 Filter: encode/decode filters in case they end up in cookies. See #1026 2015-10-06 18:53:00 -05:00
Ansis Kļaviņš
a102380ca5 Update widget-math.js
Added optimization: there is no need to do calculations on rows which are already filtered.
Improved coding style to align it with rest of code.
2015-10-05 19:52:35 +03:00
Rob Garrison
fe7a366e25 Pager: clear tbody if no data returned by ajax. See #1032 2015-10-05 11:50:57 -05:00
Rob Garrison
0e9608139d Grouping: prevent error if group_forceColumn is improperly defined. See #1030 2015-10-05 10:42:40 -05:00
Ansis Kļaviņš
0c7658893c Update widget-math.js
Created new calculation type "below". It works just like "above" except in other direction starting from top to bottom.
2015-10-04 18:06:07 +03:00
Rob Garrison
40dcaace25 version bump 2015-10-04 09:26:07 -05:00
Rob Garrison
2f3217fe80 Filter: select includes child rows when filter_childByColumn is set 2015-10-04 09:06:34 -05:00
Rob Garrison
abb5646eb1 Core: Remove tabindex when sort is disabled
See http://stackoverflow.com/a/16827628/145346
2015-10-03 22:11:02 -05:00
Mottie
285cef1e70 Pager: prevent hiding child rows when disabling or destroying pager. See #1020 2015-09-25 12:18:21 -05:00
Mottie
e23288cee8 Filter: ignore childWithSibs when childByColumn is false. See #1020
Also fixed data.childRowText by adding spaces between cell content
2015-09-24 08:49:17 -05:00
Mottie
0ebb9ea219 Filter: keep parent match when no child rows match. See #1020 2015-09-23 22:46:03 -05:00
Mottie
fa4f916633 version bump 2015-09-23 10:21:44 -05:00
Mottie
1aa87e2080 Filter: add filter_childWithSibs option. Fixes #1020 2015-09-23 07:50:45 -05:00
Andreas Mair
86f4e07cac data-column="#" (with # > 9) didn't work in external filters. 2015-09-23 08:53:13 +02:00