Allan Jardine
|
77c551268e
|
Change: Add a parseInt to the two integer values that come back from server-side processing. The question about why it doesn't work when strings are returned (or rather, why is it broken) keep cropping up in the forum.
|
2011-12-06 10:44:18 +00:00 |
|
Allan Jardine
|
5f53331cd6
|
New: Accessability change - use A tags rather than DIV/SPAN for the pagination buttons. This is a backwards incompatible change, but a sensible one
|
2011-12-06 10:39:22 +00:00 |
|
Allan Jardine
|
25fadbc644
|
Add unit test for filtering on non-string input
|
2011-12-06 10:39:08 +00:00 |
|
Allan Jardine
|
6c923e4953
|
Performance changing sorting / filtering
|
2011-12-06 10:38:23 +00:00 |
|
Allan Jardine
|
30e018f398
|
Fix: Cast fnFilter input to a string always - since we are always going to treat it as a string
|
2011-12-05 17:20:53 +00:00 |
|
Allan Jardine
|
2928326042
|
Tidy up the initialisation code a bit for creating the settings object and integrate the language compatibility fully
|
2011-12-05 16:36:20 +00:00 |
|
Allan Jardine
|
9dc702329d
|
Fix: It appears that the latest Webkit browsers have changed their scrolling behaviour slightly, which is causing the unit tests to fail. Basically the 'scroll' event is being fired when the infinite scrolling table is having data written to it (i.e the scroll changes - so its kind of fair enough!), so add a check to only load the first set of data when there is no scrolling applied.
|
2011-12-05 10:00:40 +00:00 |
|
Allan Jardine
|
6a7a7151b8
|
Alter the extending of the initialisation parameter with the defaults a little such that objects are deep copied and arrays are not (code needs tidied a little - want to get it passing all unit tests first). The thing here is that we can't use jQuery's $.extend for a full deep copy since we don't want to deep copy arrays (for example aaSorting, where the default sort would always be applied), but we do want to deep copy objects (and not just take a reference to the default object). Thus we can't use $.extend :-(.
|
2011-12-05 09:21:20 +00:00 |
|
Allan Jardine
|
94539913a5
|
Update to jQuery 1.7.1
|
2011-12-05 09:20:34 +00:00 |
|
Allan Jardine
|
6610ec24b8
|
Unit tests were using asStripClasses which was an old legacy typo... It should be asStripeClasses and I've removed the alias in 1.9, thus the unit tests need to be updated.
|
2011-12-04 18:11:36 +00:00 |
|
Allan Jardine
|
e1fb1748a8
|
Add a default unit test set for the mDataProp test set - objects
|
2011-12-03 09:57:09 +00:00 |
|
Allan Jardine
|
6205de54a4
|
Fix numeric sorting pre-formatting method typo, picked up by the unit tests
|
2011-12-03 09:56:46 +00:00 |
|
Allan Jardine
|
b135e9b676
|
Little bit of info in the build script
|
2011-12-03 09:52:36 +00:00 |
|
Allan Jardine
|
b4ff3dda3c
|
Update path given new location for the build script
|
2011-12-03 09:51:18 +00:00 |
|
Allan Jardine
|
e4cc6aa853
|
Add my unit test manipulation script. Had it knocking around my own file system forever, but this is the first time I've pulled it into git. Makes sense to have it in given the new build sctruture and the need for a build script now.
|
2011-12-03 09:49:45 +00:00 |
|
Allan Jardine
|
ee47cb7518
|
Add and document the extension object for DataTables. The extension object (ext) allows plug-ins to be added to DataTables (and is also used for this internally as well).
|
2011-12-03 09:36:19 +00:00 |
|
Allan Jardine
|
e5b826c434
|
Rearrange the 'ext' option and make the base object a model so it can be readily documented. More documentation required for the model to explain what each of the options does
|
2011-12-02 07:22:57 +00:00 |
|
Allan Jardine
|
e86da5d30a
|
Only need to define oApi once...
|
2011-12-01 19:58:34 +00:00 |
|
Allan Jardine
|
b53de6fc77
|
This is very certainly 1.9.0.dev now!
|
2011-12-01 19:56:58 +00:00 |
|
Allan Jardine
|
c491f8a37f
|
Add examples to API methods and tidy up the way oApi is generated a little
|
2011-12-01 19:47:40 +00:00 |
|
Allan Jardine
|
aeedb9afdc
|
Internal and API methods now use JSDoc comments rather than my old system
|
2011-12-01 17:53:59 +00:00 |
|
Allan Jardine
|
5c67be62ae
|
Use the oSearch model for the default initialisation and column initialisation
|
2011-11-27 18:51:56 +00:00 |
|
Allan Jardine
|
3ddd89b52e
|
Add JSDoc comments for the DataTables settings object
|
2011-11-27 17:50:06 +00:00 |
|
Allan Jardine
|
133e7fb7fe
|
Fix various comment spelling mistakes
|
2011-11-26 18:51:45 +00:00 |
|
Allan Jardine
|
2b673956d2
|
Add JSDoc comments for the DataTables column object
|
2011-11-26 18:49:12 +00:00 |
|
Allan Jardine
|
b6e60beef5
|
iNextId can go the same way as _iId since that is all it was needed for
|
2011-11-26 14:13:50 +00:00 |
|
Allan Jardine
|
eb6bde7e08
|
Drop "_iId" from the row model - its not used anywhere in DataTables these days. An old legacy property from the 1.3 days I think - can't imagine any third party plug-ins use this property either - its more or less useless these days.
|
2011-11-26 14:06:55 +00:00 |
|
Allan Jardine
|
d5e5d31725
|
Document the row model and update the data methods to extend this model as the base for aoData
|
2011-11-26 14:04:58 +00:00 |
|
Allan Jardine
|
cc265bcb09
|
Add defaults for aDataSort and sServerMethod (the two new parameters that have been introduced since the last release)
|
2011-11-26 13:45:08 +00:00 |
|
Allan Jardine
|
dcf88a2609
|
Tidy up the constructor to take account of the fact that we now have every possible property in the initalisation objects, since it is being extended from the details - i.e. no need to check for 'undefined' any more.
|
2011-11-26 13:34:51 +00:00 |
|
Allan Jardine
|
d20b87f885
|
First pass are using $.extend for the settings and initialsation objects.
Back into a state where the zero config will work
|
2011-11-25 17:08:21 +00:00 |
|
Allan Jardine
|
4853e868d4
|
Add detailed JSDoc comments for the initialisation options for DataTables
|
2011-11-25 16:34:31 +00:00 |
|
Allan Jardine
|
626492b81c
|
Big change to how DataTables constructed in the file system - breaking the various parts of DataTables seperate files. This is probably the biggest individual change to DataTables since it was first written, but the code itself is more or less the same - just split out into different files. The one big change to the code thus far is to change the function classSettings into an object that is extended. More work is required on this to complete the alteration, but for now DataTables is building into the same workable form as before using the new make.sh file.
|
2011-11-24 14:05:22 +00:00 |
|
Allan Jardine
|
1f02ac87fc
|
Fix: Filtering doesn't deal with carriage returns - 6313 - thanks to Jonathan Camp for this fix.
|
2011-11-23 07:28:16 +00:00 |
|
Allan Jardine
|
2c14233057
|
New: Optimisation for sorting - when the sorting runs it will execute the sorting function a lot, particularly for large tables, so we want these functions to be as fast as possible. As it stood, each time the function ran it would prep the data and then do the required comparison - and it would do that data prep every time. This is pointless since toLowerCase (for example) is always going to give the same result when using the same input - so now introduced a third sorting function type (in addition to 'asc' and 'desc') called 'pre', which will pre-format the data to be sorted, only once for each item to be sorted, allowing the sorting comparison function itself to be really fast (simply just the comparison). This is also backwards compatible, if the sorting type doesn't have a 'pre'-formatting method then it will just use the two sorting functions as normal.
|
2011-11-19 09:53:11 +00:00 |
|
Allan Jardine
|
a1b33880c6
|
New: aDataSort parameter for columns - this allows a column's sorting to take multiple columns into account when doing a sort. For example first name / last name columns make sense to do a multi-column sort. Previously in DataTables you would need to have the user do a multi-column sort themselves (with shift), but now you can define aDataSort (for example aDataSort: [ 0, 1 ]) to do effectively a multi column sort. Note that this is not shown to the end user that this was a multi-column sort in the same way that iDataSort wouldn't indicate that it could sort on a different column (if that was configured). Also note that iDataSort is still available for use and has not been modified externally, but if aDataSort is defined it will be given priority over any iDataSort parameter.
|
2011-11-18 16:21:44 +00:00 |
|
Allan Jardine
|
edabb3febe
|
Dev fix: Oops - committed code from a test to the zero config example!
|
2011-11-18 16:17:32 +00:00 |
|
Allan Jardine
|
967e1419c1
|
Modified: The 'i' counter that was in the sort loop was outside the function scope, so the JS engine would need to go back up a level in its scope chain. Not a big thing, but any speed in the sorting function is welcome
|
2011-11-18 16:01:43 +00:00 |
|
Allan Jardine
|
4c48650a25
|
New: Pass the cell read 'specific' type to mDataProp if it is given as a function. This might seem like a really simple change, but it greatly expands the flexibility of DataTables. It means that for a column, if you define this function and switch between the four 'get' data types for the cell ('display', 'type', 'filter' or 'sort') you can use different data for each one. So for example you could display a formatted number but do sorting on the numeric version of the number, and filtering on both types (so the user can type either version). The "type" option is for DataTables' type detection. Most of the framework for this was in 1.8.0 - I had thought to include options such as mFilterData (and might in future), but this is the first step to do that without introducing much overhead.
|
2011-11-14 08:34:29 +00:00 |
|
Allan Jardine
|
30a437d80e
|
Fix: fnUpdate recursion would cause an error if dealing with nested arrays - 7292. Fix is to let the function know, with a private variable, that it is being called recursively.
|
2011-11-10 08:15:03 +00:00 |
|
Allan Jardine
|
42567c9968
|
New: New API method '$' which will perform a jQuery selector action on the TR elements from the table's TBODY, regardless of paging. For example: oTable.$('#allan').css('background-color', 'red') will find the element (TR, TD or anything else) which has an ID of 'allan' and perform the css action on it. This is potentially a much nicer interface than needing to use fnGetNodes. Still more to be done, such as options to take column visibility, ordering and filtering into account, but this might be the tipping point for calling it 1.9 :-)
|
2011-11-09 08:58:24 +00:00 |
|
Allan Jardine
|
58f85fc601
|
New: Add "sServerMethod" initialisation option to make it easy to change from GET to POST for server-side requests. Needing to supply a custom fnServerData just to get POST was a bit of a pain - this is now no longer needed. In theory fnServerData should generally not be needed now (with fnServerParams, mDataProp and this new parameter making set up much more flexible).
|
2011-11-09 08:50:30 +00:00 |
|
Allan Jardine
|
9639d4f485
|
Merge branch 'master' of github.com:DataTables/DataTables
|
2011-11-08 10:13:47 +00:00 |
|
Allan Jardine
|
af16d8016c
|
Don't initialise the xhr listener if there is no DataTable on the page
|
2011-11-08 10:13:03 +00:00 |
|
Allan Jardine
|
5adb634a25
|
Merge pull request #37 from mbp/typo-fix
Fix typo 'destory' -> 'destroy'.
|
2011-11-07 00:59:03 -08:00 |
|
Morten Brix Pedersen
|
5732f4c1fa
|
Fix typo 'destory' -> 'destroy'.
|
2011-11-07 09:55:01 +01:00 |
|
Allan Jardine
|
f46a49f7f4
|
Updated: jQuery 1.7 time - DataTables passing all unit tests with the new jQuery
|
2011-11-04 19:46:41 +00:00 |
|
Allan Jardine
|
8d595eff37
|
Merge branch 'master' of github.com:DataTables/DataTables
|
2011-11-01 12:10:22 +00:00 |
|
Allan Jardine
|
9b0bc1bbf9
|
New: Update SyntaxHighlighter to include a submit button to run the example directly in JSBin (live.datables.net)
|
2011-11-01 12:09:08 +00:00 |
|
Allan Jardine
|
49a2c1d427
|
Merge pull request #32 from ghostd/master
fnDestroy does not remove all jQuery UI markup
|
2011-10-15 11:17:44 -07:00 |
|