1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00
Commit Graph

1270 Commits

Author SHA1 Message Date
Allan Jardine
37c33150cf New - JS: Row data index is passed to -init rowCallback 2018-06-14 11:33:41 +01:00
Allan Jardine
45bef584b5 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:32:37 +01:00
Allan Jardine
68f0124875 Dev: Add link to blog post for example of Ajax loading child row data 2018-06-14 11:32:06 +01:00
Allan Jardine
ad31f99f07 bootstrap4: use custom select menu styling 2018-06-14 11:31:19 +01:00
Allan Jardine
ed07c7f945 Fix: [Semantic UI] reduce label and serach input to a single line and restore space between label and input
Merge pull request #122 from kickofitall/master
2018-06-14 11:28:56 +01:00
Allan Jardine
f9b0b86357 Fix - styling: Remove container-fluid class from DataTable wrapper element from Bootstrap 4 integration
Fixes #121
2018-06-14 11:28:09 +01:00
Allan Jardine
0bc4349da6 reduce label and serach input to a single line
With the ui form wrapper the label and input requiere two lines. After the initialization is finished, the view changes to one line. This repositions the table and bounces the page.
2018-06-14 11:27:38 +01:00
Allan Jardine
2b644e3c67 Fix: Language options - specifying a decimal separator in the default settings rather than the init object would cause correct numeric sorting to fail
- M475
- Forum 48223
2018-06-14 11:26:48 +01:00
Allan Jardine
04b4e4a221 Fix: Column visibility changes did not update the colspan for the "No records" display when the table was either empty or filtered to be empty. 2018-06-14 11:25:28 +01:00
Allan Jardine
3d983d3e00 Fix: Updating an array sourced table that had id attributes on the original HTML table rows, would result in the id effectively being lost
- Fixes DataTables/DataTables 1023
2018-06-14 11:24:55 +01:00
Allan Jardine
2dcfd038e6 Fix - styling: Itegration with Semantic UI 2.3 - search input was not correctly styled
- Fixes DataTables/DataTables #1024
2018-06-14 11:24:23 +01:00
Allan Jardine
c5f9168fb3 Dev: Correct big O notation 2018-06-14 11:23:19 +01:00
Allan Jardine
83199449f4 Dev: Fix Allan's muppet change 2018-06-14 11:23:02 +01:00
Allan Jardine
d73571017a Dev: Code style updates for consistency 2018-06-14 11:22:46 +01:00
Allan Jardine
5f5525b10d Update: {search: 'removed'} selector options optimisation
Merge pull request #119 from dagadbm/master
2018-06-14 11:22:30 +01:00
Allan Jardine
5cc3676e27 remove extra white space 2018-06-14 11:22:14 +01:00
Allan Jardine
db1f2383ff Refactor removed search 2018-06-14 11:21:58 +01:00
Allan Jardine
05dcf4d988 Fix - styling: Comptability with Foundation 6.4's grid-xy system 2018-06-14 11:21:26 +01:00
Allan Jardine
ce5e859cbd Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:16:48 +01:00
Allan Jardine
c64a7a03cb Fix - CSS: Bootstrap 4 integration with scrolling - asc icons could show up in the body table
- DataTables/FixedColumns/issues/37
2018-06-14 11:16:33 +01:00
Allan Jardine
02cb21017b DEV updates to the example docs 2018-06-14 11:16:02 +01:00
Allan Jardine
9b95edf189 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:12:36 +01:00
Allan Jardine
5bf38afa28 dev minor updates to examples docs 2018-06-14 11:12:20 +01:00
Allan Jardine
c4dd1136fb Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:12:04 +01:00
Allan Jardine
66c6139c71 Dev: Fix for currency sorting 2018-06-14 11:11:48 +01:00
Allan Jardine
f5283f648c Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:11:17 +01:00
Allan Jardine
2024dc274b dev more progress with additional tests 2018-06-14 11:11:01 +01:00
Allan Jardine
cdc3f4137a Sorting - don't treat 0 as negative infinity 2018-06-14 11:10:30 +01:00
Allan Jardine
5e74941660 Merge branch 'master' of github.com:DataTables/DataTablesSrc
added new tests for cell().node()
2018-06-14 11:08:57 +01:00
Allan Jardine
74e37c13fe added tests for cell().node() 2018-06-14 11:08:41 +01:00
Allan Jardine
fb59f8f903 Styling: UI Kit tech preview moving on to UI Kit v3 2018-06-14 11:07:53 +01:00
Allan Jardine
612c508f1f New: Support Bitcoin and Ethereum symbols for currency sorting
Thread 46174
2018-06-14 11:06:34 +01:00
Allan Jardine
99a313b529 Dev fix: Address scrolling issue introduced by #113. The zeroing of height should be applied to the sizer's child node 2018-06-14 11:06:18 +01:00
Allan Jardine
4eec66f677 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:05:47 +01:00
Allan Jardine
aa69bda137 Build: Add a JS Hint method for the build functions
Fix: Typo in row selector docs
2018-06-14 11:05:31 +01:00
Allan Jardine
3f7da1674f Remove inline styles in injected HTML
fixes #112
2018-06-14 11:04:58 +01:00
Allan Jardine
d7ac068183 Fix: Using a ndoe as a row selector when it had already been removed from the table could incorrectly select the row
- Fixes GH #994
2018-06-14 11:04:42 +01:00
Allan Jardine
609f3173f8 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2018-06-14 11:04:11 +01:00
Allan Jardine
81218f4fa3 Fix - examples: PHP demo script could use invalid SQL if an orderable:false column was ordered upon
- Thread 45150
2018-06-14 11:03:55 +01:00
Allan Jardine
713b7498df Fix: Correct comment for Bootstrap 4 integration (stated that it was Bootstrap 3) 2018-06-14 11:03:39 +01:00
Allan Jardine
75a665f64f DataTables 1.10.16 release 2017-08-31 14:52:17 +01:00
Allan Jardine
ae945eae3d Fix: When removing rows with server-side processing and paging enabled, the client-side could request a page that no longer exists.
- Thread 44354
2017-08-31 14:51:46 +01:00
Allan Jardine
8e0224cf11 Fix: Large numbers shown in the length -tag select should be formatted using the built in number formatter.
- FB 153
2017-08-31 14:51:15 +01:00
Allan Jardine
2000e66401 Fix: Jquery UI 1.12 integration. The spelling of caret was fixed
- Fixes DataTables/DataTables #963
2017-08-31 14:47:47 +01:00
Allan Jardine
1900c20e5f Fix: Add class names to column header cells before extensions are initialised. This allows extensions such as Buttons' column visibility selector to operate on class names given in the column options.
- Thread 34321
- FB 286
2017-08-31 14:46:59 +01:00
Allan Jardine
57fd628cb7 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2017-08-31 14:46:43 +01:00
Allan Jardine
8cdb720a42 Fix - docs: 404 link error in -init columns.orderData documentation
Thanks ianchanning!
2017-08-31 14:46:26 +01:00
Allan Jardine
b90cfd5a2f Revert "DataTables 2 development starts"
This reverts commit b07cbf3ad523a808ad8ad788dbacaabe456d43d1.
2017-08-31 14:46:09 +01:00
Allan Jardine
d788695396 Revert "Update: Change -init dom default to lftrip (move the processing element after the table). This is to allow correct layering when scrolling - previously the processing element wouldn't show if scrolling was enabled without a z-index value."
This reverts commit ff352c4b077d1e0a558c03ff36e15d787560fafa.
2017-08-31 14:45:54 +01:00
Allan Jardine
069d24e060 Revert "Dev: Missed a few uses of jQuery UI specific code"
This reverts commit 3690a478e5438b4c744ffb2bf1506dae35162764.
2017-08-31 14:45:38 +01:00
Allan Jardine
114b913ad1 Revert "New: -api column().name() and -api columns().names() methods which can be used to get and set the names of columns (-init columns.name)"
This reverts commit fa158a0030e7310837ada440c5f942406c0b4b8a.
2017-08-31 14:45:21 +01:00
Allan Jardine
98fe28aeb2 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2017-08-31 14:44:50 +01:00
Allan Jardine
c00abc7cad Fix - examples: Remove parameter that isn't required from the limit() method in the demo server-side processing script
Thanks tangerine
2017-08-31 14:44:34 +01:00
Allan Jardine
1a3db258d4 New: -api column().name() and -api columns().names() methods which can be used to get and set the names of columns (-init columns.name) 2017-08-31 14:44:01 +01:00
Allan Jardine
df61c273c4 Dev: Missed a few uses of jQuery UI specific code 2017-08-31 14:43:45 +01:00
Allan Jardine
0aaba67759 Update: Change -init dom default to lftrip (move the processing element after the table). This is to allow correct layering when scrolling - previously the processing element wouldn't show if scrolling was enabled without a z-index value.
- FB 91
2017-08-31 14:43:29 +01:00
Allan Jardine
e203d67cd8 DataTables 2 development starts 2017-08-31 14:43:13 +01:00
Allan Jardine
e869cc0910 Removed: Built in jQuery UI styling option (jqueryUI) has been removed from DataTables 2. Support for styling via jQuery UI is still available - it is provided via the integration styling files, matching how Bootstrap, Foundation, Semantic UI and all other styling libraries can integrate with DataTables. 2017-08-31 14:42:41 +01:00
Allan Jardine
7494262db1 DataTables 1.10.15 2017-04-18 09:24:18 +01:00
Allan Jardine
c289ebfcc6 Fix: Javascript error when unique() was used with a DataTables API instance.
New: `-api slice()` utility method (required to address the above)

- Fixes DataTables/DataTables #928
2017-04-18 09:15:24 +01:00
Allan Jardine
ea5c1456e6 DataTables 1.10.14 2017-04-17 20:23:57 +01:00
Allan Jardine
9182f8c285 Fix: API performance improvement - sigifnicantly faster API access for large tables. Testing with a table of 50'000 rows rows().count() is now 23mS executation time, while it was 996mS before!
- The `_unique()` function was a killer because it uses nested loops to
  determine if items have been seen before in an array. In the majority
  of cases when accessing the API the items will be unique already, so
  running the nested loops is hugely detremental to performance.
- Rather than attempting to improve the performance of `_unique()`
  itself, we try to avoid running its algorithim at all. An array of the
  items is sorted and tested to see if there are unique items or not. In
  the majority of cases this means a massive performance boost since it
  is a single loop rather than a nested loop.
2017-04-14 21:10:23 +01:00
Allan Jardine
c3cd9e8019 Fix: Make SemanticUI integration stackable
- Fixes DataTables/DataTables #924
2017-04-13 15:53:46 +01:00
Allan Jardine
e9b3c4aff1 Revert: Remove pagination-sm class from DataTables paging container -
94d90ea3fbcb4db3449f351059abd0a087fa8180
2017-04-12 19:59:54 +01:00
Allan Jardine
ce211f2b29 Fix - CSS: Columns which are orderable in a single direction only should show a pointer cursor 2017-04-07 11:04:03 +01:00
Allan Jardine
1bceee9662 Merge branch 'master' of github.com:DataTables/DataTablesSrc 2017-04-05 15:45:21 +01:00
Allan Jardine
03f98a12e7 Dev: Update row grouping example to mention RowGroup 2017-04-05 15:44:31 +01:00
Allan Jardine
50d1abf4ca Merge branch 'master' of github.com:DataTables/DataTablesSrc 2017-04-05 15:43:10 +01:00
Allan Jardine
ce77e9eb23 Dev: Adding RowGroup extension build information 2017-04-05 15:42:16 +01:00
Allan Jardine
99acaf21cb Update dataTables.bootstrap4.js 2017-04-05 15:41:25 +01:00
Allan Jardine
51882ce3fa Update - CSS: Additional Bootstrap 4 integration for alpha 6 changes 2017-04-05 15:40:33 +01:00
Allan Jardine
fffbc5eaae Update - CSS: Additional Bootstrap 4 integration for alpha 6 changes 2017-04-05 15:40:08 +01:00
Allan Jardine
b2c2d51a5a Fix: -init columns.orderData would fail if used with a target index of 0 and it was given as an integer
- Fixes DataTablesSrc #97 and thread 22462
2017-04-05 15:39:43 +01:00
Allan Jardine
5ccbb849a7 Wrong variable passed to callbacks 2017-04-05 15:36:18 +01:00
Allan Jardine
3cbfbfe0fc Update - CSS: Bootstrap 4 integration for alpha 6 changes 2017-04-05 15:35:53 +01:00
Allan Jardine
c295b130f2 1.10.13 release! 2016-12-06 15:15:00 +00:00
Allan Jardine
7208f22f54 Dev: Another daft filtering error 2016-12-06 15:14:08 +00:00
Allan Jardine
d861360bfb Dev: Fix errors in the filtering change found by the unit tests 2016-12-06 15:13:52 +00:00
Allan Jardine
08bd1e160b Fix: When assigning a handler for multiple events, automatically add the dt namespace. It worked before for single events, but not multiple.
- Fixes DataTables/DataTables #836
2016-12-05 13:49:18 +00:00
Allan Jardine
61ad3d7ff5 Fix: Disallow sUrl being undefined, empty string or null.
- Fixes DataTables/DataTables #855
2016-12-05 11:31:37 +00:00
Allan Jardine
d115844483 Fix: Make date detection a lot more strict. Only ISO8601 style strings will be detected as valid dates now. Anything else would require a plug-in.
- This is because Chrome tries _very_ hard to make anything passed into
  `Date.parse()` a valid date, including nonesense such as "a 1".
- Fixes DataTables/DataTables #874.
2016-12-05 11:15:09 +00:00
Allan Jardine
acf8945260 Fix: If the paging active element was index 0, it wouldn't be refocused 2016-12-02 18:00:17 +00:00
Allan Jardine
bb253155e6 Fix: If there is no active element when paging, don't attempt to refocus
Merge pull request #76 from MuellerMatthew/patch-1
2016-12-02 17:59:44 +00:00
Allan Jardine
28aa80521d Fix: Bootstrap 4 flexbox grid
Merge pull request #75 from stroebjo/master
2016-12-02 17:59:28 +00:00
Allan Jardine
79df7b3374 Fix - performance: slice() can be quite slow when modifying arrays for the filtering, so use push() instead.
- Fixes #84
2016-12-02 17:58:26 +00:00
Allan Jardine
bc23e4ccae Fix: When replacing child row information, detach the element rather than removing which would destroy the event handlers. A remove action will still call $().remove() to clean up any event handlers.
- Thread 38093
2016-12-02 17:58:11 +00:00
Allan Jardine
b9536e692d Merge branch 'master' of github.com:DataTables/DataTablesSrc 2016-12-02 17:57:55 +00:00
Allan Jardine
31a7cf3133 Fix - docs: Typo in -init rowCallback's markup
- Fixes DataTables/DataTables #888
2016-12-02 17:57:39 +00:00
Allan Jardine
875b2d028c Update documentation to reflect that there are 6 built in paging options, not 4 2016-12-02 17:57:07 +00:00
Allan Jardine
ad89212439 Add first_last_numbers Pagination Option
Add a pagination option to have just the 'First' and 'Last' buttons,
plus page numbers.
2016-12-02 17:56:21 +00:00
Allan Jardine
abeeda39ae Fix: caption tags should have the caption-side CSS value read from the caption tag itself, not the tabe tag.
- See thread 38094. Thanks _puls_!
2016-12-02 17:55:02 +00:00
Allan Jardine
69bcdf36be Fix: Using -init columns.data to access a data point which uses a backslash in its name would result in an error due to an incorrectly escaped regex.
- Fixes DataTables/DataTables #869
2016-12-02 17:54:46 +00:00
Allan Jardine
f433bb5ba4 New: -api $.fn.dataTable.isDataTable() will now check for DataTable API instances as well (i.e. variables passed in)
- Thread 38053
2016-12-02 17:54:14 +00:00
Allan Jardine
4b024ea60e Fix: If initialising a DataTable when the window was horizontally scrolled the browser detection would incorrectly determine that rtl layout was being used (effects scrolling view).
- Issue was due to the use of `position:fixed` for the element - from
  c856d0eb232ce41c76d0c30739d33e47cc7288f4. Ironically that change just
  moved the issue that it was trying to solve!
- Fixes DataTables/DataTables #866
2016-12-02 17:53:12 +00:00
Allan Jardine
d2e3bcec32 Dev: Fix no selector issue introduced by dfbf4fa23aa0952ee007bca06b791c2cd0ad48bb 2016-12-02 17:52:57 +00:00
Allan Jardine
946dfe85e3 Fix: Row selector would incorrectly select rows if row index 0 was passed in with a selector modifier.
- See thread 37834. Much qudos to `guyclairbois` for spotting this and
  test case!
2016-12-02 17:52:41 +00:00
Allan Jardine
4099cea9cd Fix: Fooundation 6 styling for the processing element needs to use the callout class
- Fixes DataTablesSrc #82
2016-12-02 17:51:53 +00:00
Allan Jardine
774d1e7795 Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:49:20 +00:00
Allan Jardine
7df20199ca Added modified tests for stateLoad/stateSave 2016-12-02 17:49:03 +00:00
Allan Jardine
417a9cf2bd Dev: 1.10.13-dev version indicator 2016-12-02 17:48:46 +00:00