Commit Graph

146 Commits

Author SHA1 Message Date
Rob Garrison
2f9fa35e55 Global: Replace array push functions in main loops 2016-02-21 21:47:59 -06:00
Rob Garrison
a234d31cba version bump 2016-02-15 13:15:22 -06:00
Rob Garrison
90ce03df6e Filter: fix disable live search. See #1152 2016-02-04 08:04:36 -06:00
Rob Garrison
7f08f7dd1d Filter: select defaults to exact match again. Fixes #1136 2016-01-22 13:36:09 -06:00
Rob Garrison
bb7b57d0a1 version bump 2016-01-21 07:44:37 -06:00
Rob Garrison
87edcd3814 Filter: Search delay now works properly. Fixes #1134 2016-01-21 07:32:41 -06:00
tschilling
426d72b50d Treat null filters the same way as undefined filters. 2016-01-20 10:50:35 -05:00
tschilling
4cb15889d7 Check that the filter is not undefined before encoding/decoding it.
If we include undefined filter values in the encoding/decoding,
then we store 'undefined' as the value in the cookie. When this
gets parsed out, it's treated as an actual value. This will likely
not match anything resulting in the initial filtering to filter out
all results.
2016-01-19 15:10:22 -05:00
Rob Garrison
01b531ee8e version bump 2016-01-15 07:52:22 -06:00
Rob Garrison
d341783d0e Filter: Add filter_resetOnEsc option. See #1126 2016-01-14 22:18:48 -06:00
Rob Garrison
06b190a520 Filter: parsed flag tweaks
* Set all true if `filter_useParsedData` true.
* Stop using c.$headers
2016-01-10 22:06:15 -06:00
Rob Garrison
4e9905f26c Filter: functions now get exact data, ignoring parsed flag. Fixes #1107 2016-01-10 22:03:45 -06:00
Rob Garrison
7aa5ba3617 Filter: restore return false to fix unit tests 2016-01-10 21:31:54 -06:00
Rob Garrison
d59befbbf3 Filter: fix "or" test regex. Fixes #1117 2016-01-10 21:04:19 -06:00
Rob Garrison
535c7c43c3 Filter: use replacement character instead of null 2015-12-25 11:57:24 -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
e5cffec185 Filter: trigger "filterBeforeEnd" for widget binding 2015-12-12 20:42:27 -06:00
Rob Garrison
d2eae00ee3 Filter: prevent edge case js error 2015-12-12 15:38:46 -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
87a10d6987 Global: Use triggerHandler to prevent event bubble to any outer table 2015-12-01 19:38:56 -06:00
Rob Garrison
87b34de41c Filter: prevent js error when columnFilters false. Fixes #1091 2015-11-23 21:37:50 -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
f51b39388a Filter: selectSource option now accepts an array of objects 2015-11-10 14:40:26 -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
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 Garrison
f12049f879 Filter: setFilter "apply" parameter now defaults to true. See #1071 2015-11-04 19:42:29 -06:00
Rob Garrison
236d633922 Filter: convert filter array to include all strings. Fixes #1070 2015-11-04 12:34:15 -06:00
Rob Garrison
1d813bd766 version bump 2015-10-31 11:06:09 -05:00
Rob Garrison
e5a9de1896 Filter: prevent error in formatterUpdated. Fixes #1056 2015-10-27 07:24:00 -05:00
Rob Garrison
5d4529c37d Global: call internal functions directly; stop using trigger 2015-10-22 16:41:34 -05:00
Rob Garrison
1bb00280ed Filter & stickyHeaders: hideFilters applies to stickyHeaders again. Fixes #1050 2015-10-18 13:21:55 -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
e2ffab45a0 Filter: encode/decode filters in case they end up in cookies. See #1026 2015-10-06 18:53:00 -05: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
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
Mottie
3328f02579 Filter: add processOptions function & code cleanup. See #1010 2015-09-07 15:47:16 -05:00
Mottie
cc1d4904ba Filter: namespace a variable 2015-09-05 09:24:53 -05:00
Mottie
829d3792fa version bump 2015-09-01 10:45:24 -05:00
Mottie
7756fdf9a2 Filter: restore triggered change namespace & prevent search before init. Fixes #1002 2015-08-27 07:14:22 -05:00
Mottie
3282dc52fc Filter: use namespacing on reset. Fixes #1001 2015-08-26 07:22:48 -05:00
Mottie
68ae07cb79 version bump 2015-08-23 13:22:56 -05:00
Mottie
0924a98a2b Filter: add reference to make file more compressible 2015-08-23 07:00:43 -05:00
Mottie
8b73160c67 Core & Filter: cache regex 2015-08-23 07:00:34 -05:00
Mottie
47de48ef5d Filter: allow dynamically changing "anyMatch" filter. Fixes #998
previously, once an anyMatch type filter was found, it's value was always used to do an anyMatch search. Now the script checks to see if the input is targeting more than one column
2015-08-21 14:00:04 -05:00
Mottie
805be29302 version bump 2015-08-17 21:08:41 -05:00
Mottie
2182b42157 Filter: fix js error caused when limiting search columns
See http://stackoverflow.com/q/32052986/145346 for an example
2015-08-17 20:10:29 -05:00
Mottie
10bc23fa24 Overall: set jsHint "undef" & "unused" options. Fixed issues
The math widget had a javascript error which jsHint was not catching
2015-07-28 15:57:01 -05:00
Mottie
b3dd4b7c75 version bump 2015-07-28 15:01:32 -05:00
Mottie
7a91e0d6a6 Filter: prevent invalid RegExp errors 2015-07-27 18:49:30 -05:00
Mottie
b5485f4992 Overall: update debug logging to use console 2015-07-24 18:23:00 -05:00
Mottie
75de112ef6 Build: Add jscs checking & fix style issues
Thanks @Herst!
2015-07-22 23:29:51 -05:00
Herst
c35f1798eb Filter: comma too much
The comma that breaks IE7.
2015-06-19 10:20:23 +02:00
Mottie
5faba4b9e0 Filter: row remains visible after focused, when hideFilters set 2015-06-12 21:06:08 -05:00
Mottie
449b985c60 Filter: add nesting of "AND" & "OR" searches. Fixes #891 & #918 2015-06-12 21:02:26 -05:00
Mottie
ca163ec639 Filter: selectSource now ignores parsers, if none set. Fixes #934 2015-06-07 19:26:28 -05:00
Mottie
18a97ed4d9 Filter: target last used filter issue. See #920 2015-05-31 10:45:50 -05:00
Mottie
f07e70ed0b Filter: numeric column queries no longer force a search in parsed content 2015-05-17 23:00:21 -05:00
Mottie
13e3d0593d version bump 2015-05-17 15:32:53 -05:00
Mottie
8c2844b0ce Filter: prevent setFilter setting same filters after update. Fixes #903 & #733 2015-05-16 17:35:54 -05:00
Mottie
f5550fbee0 Filter: code cleanup to make it more readable 2015-05-16 17:13:17 -05:00
Mottie
9a67c022c4 Filter: add filter_childByColumn option. Fixes #396 & #574 2015-05-14 21:32:41 -05:00
Mottie
dcf4b01edf Filter: clean up parseFilter function 2015-05-13 07:44:58 -05:00
Mottie
159a72501c Filter: operator search ignores empty strings
because "" < 10 is true
2015-05-13 07:41:55 -05:00
Mottie
eadfe2980b Filter: don't save column specific any matches to storage 2015-05-12 22:35:22 -05:00
Mottie
b591583669 Filter: add data parameter to filter_functions. See #891 2015-05-05 23:44:06 -05:00
Mottie
a327084b16 Filter: Regex search update. See #891
Regex is now cached (per search) to optimize speed & it now properly uses case-sensitive content
2015-05-05 22:17:14 -05:00
Mottie
cfc18ac71b Filter: allow setting filter_selectSource with filter_functions
See http://jsfiddle.net/Mottie/856bzzeL/117/
2015-04-07 22:12:53 -05:00
Mottie
cd98f306bb Filter: cache main loop variables 2015-04-07 11:33:56 -05:00
Mottie
6f524ccef6 version bump 2015-03-26 10:48:43 -05:00
Mottie
16dd744bcc Filter: make "disabled" a modifiable class name 2015-03-24 13:29:41 -05:00
Mottie
7f37b90ebd General code cleanup
Also replace instances of tagName with nodeName
2015-03-23 16:08:07 -05:00
Mottie
979b3e5ddc Filter: prevent error if parseFilter returns NaN
It all depends on what the parser returns; some custom parsers may not take all situations into account
2015-03-11 17:32:24 -05:00
Mottie
403d831fc0 version bump 2015-03-05 10:10:57 -06:00
Mottie
ada1bbd898 Filter: stop using toggle/show
A row with display:table-row cannot be hidden with css, so collapsing a grouping widget group will not work, see http://stackoverflow.com/q/28868227/145346
2015-03-05 09:28:23 -06:00
Mottie
c17aa829e6 Debug: update debug logging
pager, columnSelector & filter
2015-02-27 17:37:14 -06:00
Mottie
a69a746fdf Core: merge in modified addInstanceMethods. Closes #826
Removed `$columnHeader` & replaced it with new `$headerIndexed` variable
2015-02-27 14:33:27 -06:00
Mottie
4171325819 Merge branch 'addInstanceMethods' of https://github.com/prijutme4ty/tablesorter into instance
Conflicts:
	js/jquery.tablesorter.js
	js/widgets/widget-filter.js
2015-02-27 06:56:53 -06:00
Mottie
d3170096b2 Filter: External filters can set initial values. Fixes #831
An empty string is better than an undefined filter
2015-02-26 08:30:09 -06:00
Mottie
873f6d2ee2 Optimizations: replace arrays using $.each with for loops. See #827 2015-02-25 18:44:36 -06:00
prijutme4ty
c71e8f6220 Added $.tablesorter.addInstanceMethods function which allows one
to define config object instance methods.

Refactored getting the column header using config-object method $columnHeader.
2015-02-25 17:21:02 +03:00
Mottie
1972857048 Filter: add config parameter to filter functions 2015-02-23 22:28:14 -06:00
Mottie
97d3caaffa Filter: Fix major issue with filter widget
Odd that the qunit test during the grunt build did not catch it!
2015-02-20 19:35:41 -06:00
Mottie
c0911bc7ca Filter: copied MaksimProgr changes & updates to widget-filter.js 2015-02-20 16:38:11 -06:00
Mottie
b71c1fe681 Event unbinding: change trim to replace spaces
the problem in jQuery 1.7-1.8 was any double spaces within a list of event names would cause the unbind to remove all event bindings - see http://jsfiddle.net/Mottie/zL6uory0/2/
2015-02-20 16:17:29 -06:00
Mottie
2b1b0167e7 Filter: merge changes from prijutme4ty into separated filter widget 2015-02-20 14:32:36 -06:00
Mottie
df5276238e Filter: ensure anymatch is a string value 2015-02-20 14:17:49 -06:00
Mottie
d78f3b032b Filter: prevent error when using anymatch & no external input 2015-02-20 14:16:42 -06:00
Mottie
2774abf8d8 Build: Add grunt build process
Rearranged, renamed & broke apart other files
2015-02-12 21:10:38 -06:00