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

1839 Commits

Author SHA1 Message Date
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
Allan Jardine
e5a3a794d6 Dev: Trigger a state save on the first draw like before
- Bug was introduced by the ordering of the code for the callback state
  loading
2016-12-02 17:48:30 +00:00
Allan Jardine
fe0ada1535 Fix: jQuery selectors which had a comma in them were incorrectly split by DataTables causing them to be invalid or give incorrect results
- fb-87
- Forum thread 34641
2016-12-02 17:48:13 +00:00
Allan Jardine
70d1afe8a1 Fix: Number renderer was not correctly rounding values
- Add number renderer tests
2016-12-02 17:47:58 +00:00
Allan Jardine
9e015213b0 New: -init stateLoadCallback can now use a callback function for async loading of state data, rather than requiring it to be sync.
- async is deprecated in the XHR spec and will be removed from Chrome
  (m53 I think).
2016-12-02 17:47:26 +00:00
Allan Jardine
9e45850c8d Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:44:50 +00:00
Allan Jardine
048d94836c Fixed several typos in documentation 2016-12-02 17:44:34 +00:00
Allan Jardine
f2f1a88c5c Fix: Remove deprecated jQuery $().bind() and $().unbind() use, replaced with the $().on() and $().off() methods.
- DataTables explicitly supports only jQuery 1.7+. `on` and `off` were
  introduced in 1.7, so this isn't a problem.
- jQuery migrate shows warnings if bind and unbind are used
- Fixes DataTables/DataTables #853
2016-12-02 17:44:02 +00:00
Allan Jardine
2cefd489fd Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:43:31 +00:00
Allan Jardine
1a174977ca Modified tests for columnDefs 2016-12-02 17:43:00 +00:00
Allan Jardine
00a4506d95 Performance: Faster row selection for multiple rows (-api rows()) by reusing the allowed row index array 2016-12-02 17:42:29 +00:00
Allan Jardine
7edd896e92 Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:41:42 +00:00
Allan Jardine
02e28fd14e Added new tests for callbacks, first pass complete.
(will need to add more tests for stateLoad/save)
2016-12-02 17:41:11 +00:00
Allan Jardine
3e88556062 Fix: Improve column selector when used with a complex jQuery selector for pseudo selectors
- Many thanks to chrisaeg for pointing this out!
2016-12-02 17:40:40 +00:00
Allan Jardine
530dd14e94 Dev: Revert 6f6b3d4b14fbba4a8818d8a24dc71763f9e92c80 - it was completely wrong! 2016-12-02 17:38:19 +00:00
Allan Jardine
b41687e3bc Fix - example: Typo in row callback example 2016-12-02 17:36:46 +00:00
Allan Jardine
5dcd176847 Dev: Correct internal parameter names - they we misleading in the code 2016-12-02 17:36:30 +00:00
Allan Jardine
9676200fa9 Update: Upload examples to latest jQuery 1.x release 2016-12-02 17:35:43 +00:00
Allan Jardine
ac15162e3c Fix - docs: Typo in description of -init columns.orderable
- Thanks _wongjas_
2016-12-02 17:35:27 +00:00
Allan Jardine
9bc6d5df8a Added new callback tests-
*drawCallback
	*footerCallback
	*headerCallback
	*infoCallback
	*createdRow (incomplete)
	*drawCallback (incomplete)
2016-12-02 17:35:11 +00:00
Allan Jardine
348c44230c Dev: Updating jQuery used in examples to 1.12.4 2016-12-02 17:34:40 +00:00
Allan Jardine
e2dd3bef57 Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:34:24 +00:00
Allan Jardine
03d3f4edb9 Added new test
Callbacks- createRow.js
2016-12-02 17:34:08 +00:00
Allan Jardine
da861f3604 Merge pull request #80 from aij/master
Fix: When sorting a date column, an empty string would be incorrectly used as 1970-01-01.
2016-12-02 17:33:21 +00:00
Allan Jardine
75556f9eca Added new tests for columns options.
Includes-

columns.orderable
columns.className
columns.name
columns.orderData
columns.searchable
columns.title
columns.visible
columns.width
2016-12-02 17:32:49 +00:00
Allan Jardine
42ae4bf0c5 Fix date sorting of empty fields
Previously, date sorting of values that
failed to parse as a date were sorted as
if they were 1970-01-01 (Unix and JS epoch).

Now, they sort before other dates.

Example:
https://jsfiddle.net/qae6zjty/1/
2016-12-02 17:32:32 +00:00
Allan Jardine
1c3dacae1d Merge branch 'master' of https://github.com/DataTables/DataTablesSrc 2016-12-02 17:31:30 +00:00
Allan Jardine
a1966cca5d Added news tests 2016-12-02 17:31:14 +00:00
Allan Jardine
a934d74d1d Dev: Updating Semantic UI libraries to 2.2.1
- Fixes issue with the "show x entries" input
- Thread 33814
2016-12-02 17:29:55 +00:00
Allan Jardine
9005dadaef Dev: Update moment and add note about test files 2016-12-02 17:23:26 +00:00
Allan Jardine
8d662b2229 DataTables 1.10.12! 2016-12-02 17:22:55 +00:00
Allan Jardine
635aad30cc Fix: Align "show entries" text correctly for cases where the Semantic UI JS is not available on the page 2016-12-02 17:22:39 +00:00
Allan Jardine
4865de6399 Fix: Semantic UI styling with a scrolling table 2016-12-02 17:22:08 +00:00
Allan Jardine
63f8c2d9ae Dev: Apply previous fix to Bootstrap 4 as well 2016-12-02 17:21:52 +00:00
Allan Jardine
d014c19992 Fix: Apply border-collapse: separate to Bootstrap styled DataTables
- Previously it was only used for tables which were marked with the
  `table-bordered`, but that caused issues with scrolling tables which
  are borderless.
- See DataTables/FixedColumns #57
2016-12-02 17:21:37 +00:00
Allan Jardine
627ca5aef6 Fix: Remove MySQL specific commands from demo SSP class
- SQL_CALC_FOUND_ROWS was used to try and speed the queries up, and that
  works well for MySQL, but it confuses anyone who tries to modify this
  script for other databases.
- Field escaping should possibly be considered in future as well
2016-12-02 17:21:21 +00:00
Allan Jardine
632f449467 New: $.fn.dataTable.util methods are now overridable (throttle and escapeRegex)
- It is useful to be able to replace some of the utility methods with
  your own custom ones - for example a debounce rather than tha throttle
  for filtering.
- This commit reorders the code a little to make that possible. No new
  code is present at such - its really about reordering the current code
  to make `$.fn.dataTable.util` the host for the original functions.
  Backwards compatiblity is provided by assigning the util methods to
  their old variables. With the next major update they should be removed
  and the util methods used directly.
- Other util methods should be added at the same time, escapeHtml,
  unique, etc.
- Fixes DataTables/DataTables #810
2016-12-02 17:20:34 +00:00
Allan Jardine
275d326cc8 Update: Update to jQuery 1.12.3 2016-12-02 17:20:03 +00:00
Allan Jardine
83af61dd4b Dev: Updating the styling of the code blocks in the examples 2016-12-02 17:19:48 +00:00
Allan Jardine
61ab42e4b2 Fix - example: Server-side pipelining didn't work when all data is requested
- Although this mitigates any benefits of using server-side processing
  it is something that should be handled.
- Thanks Hormah for pointing this out.
2016-12-02 17:19:00 +00:00
Allan Jardine
452ab2b541 Update dataTables.bootstrap4.js 2016-12-02 17:18:45 +00:00
Allan Jardine
a3722981df fixing pagination focus issue 2016-12-02 17:18:29 +00:00
Allan Jardine
327d71584b Fix: dt-api order() called with an empty array would cause a JS error
- Fixes DataTables/DataTables #800
- Its safe to check for `.length` on `orders` at this point since it can
  be either a number, an array or undefined. The number and undefined
  conditions have already been checked, so it must be an array (of
  whatever length).
2016-12-02 17:18:14 +00:00
Allan Jardine
16c081d889 Dev: Fix recursion error with Responsive from last commit. Need to be
more selective about when we fire `column-visiblity`!
2016-12-02 17:17:58 +00:00
Allan Jardine
e9fc9dab2f Dev: A JS error was introduced with the column visiblity change - undefined variable.
- Need to use two iterators for the columns visible unfortunately
2016-12-02 17:17:26 +00:00
Allan Jardine
d9775c4085 Fix: Performance issue when using columns.visible() as a setter.
The column resize was being called for every column.
2016-12-02 17:16:39 +00:00