Brian
638f7386b5
Update license.txt
2015-06-22 17:24:11 +02:00
Allan Jardine
36929eade3
Fix: Initialisation on an element other than table
would result in a Javascript error
...
* Issue was that an `error` event was being triggered before the
settings object had been configured. There is no option to trigger an
error event in this case.
* Fixes DataTables/DataTables #572
2015-06-10 09:48:45 +01:00
Allan Jardine
5a47fe5a9b
Merge branch 'master' of github.com:DataTables/DataTablesSrc
2015-06-10 09:48:26 +01:00
Allan Jardine
dd6612f24a
New: dt-event preInit
event - emitted while a table is being initialised, allowing developers to modify the data being requested by DataTables for the first draw of the table. Used by Scroller 1.3.0 and likely will be by other extensions soon.
2015-06-10 09:48:06 +01:00
Allan Jardine
4cd2132607
Dev: Remove comments from SCSS file that are redundant
2015-06-10 09:47:44 +01:00
Allan Jardine
a5613441dc
Dev: Add Scroller as a framework library
2015-06-10 09:47:23 +01:00
Allan Jardine
1effb64cfa
Fixed event handlers in table headers in IE8
...
On line 605, column.sTitle is set to the TH's innerHTML.
On line 1816, column.sTitle is compared with cell.html().
If you have child elements with event handlers on them inside the TH, these are not the same in IE8 (see https://gist.github.com/simonbrent/933e552739477f4be3ab#file-test-html )
As a result, the check on 1816 fails, the contents of the cell is replaced, and the event handlers are removed.
Comparing instead with cell[0].innerHTML fixes this issue.
2015-06-10 09:45:55 +01:00
Allan Jardine
cf1e9d1fab
Fix: dt-api ajax.reload()
should cancel an exisiting request if that request has not yet completed
...
- Thread 28197. Thank you _womplify_!
2015-06-08 11:13:56 +01:00
Allan Jardine
f9cdaead17
Dev: Fix trailing comma
2015-06-04 15:35:06 +01:00
Allan Jardine
801e4bedf1
New: dt-init rowId
option to specify what property should be used from the row's data source object to read the row's id and then set it as the DOM id (previously this was static as the DT_RowId
option)
...
New: `dt-api row().id()` and `dt-api rows().ids()` to get the id from one or multiple rows, based on the new `dt-init rowId` option
2015-06-04 15:26:45 +01:00
Allan Jardine
759ea3d733
Update: The dt-api rows().every()
, dt-api columns().every()
and dt-api cells().every()
methods are now passed index and loop counter parameters
2015-06-03 17:07:55 +01:00
Allan Jardine
d95820dd2a
New: dt-api count()
method. This provides a short cut method to determine how many items have been selected by the API. This can be useful to count the number of selected rows, etc.
2015-06-03 17:07:17 +01:00
Allan Jardine
4f3525786d
Update: Add postfix
option to the number
renderer option
2015-06-03 17:06:58 +01:00
Allan Jardine
f817194a09
Fix: If the paging language options were set to be an empty string, the button wouldn't render. This is not correct as it doesn't allow CSS icons to be used rather than the strings.
2015-05-30 14:10:31 +01:00
Allan Jardine
3de8e7c3fe
Merge branch 'master' of github.com:DataTables/DataTablesSrc
2015-05-30 14:10:12 +01:00
Allan Jardine
04598f91ff
Fix - docs: dt-api row.add()
and dt-api rows.add()
will accept tr
elements
2015-05-30 14:09:54 +01:00
Allan Jardine
63c215b044
Merge pull request #43 from cdaringe/bugfix/jq-2.1.4-sppt
...
Fix: Compatibility with jQuery 2.1.4 when using `$.map` and passing in only arrays
2015-05-30 14:09:37 +01:00
Allan Jardine
feccbc5968
jq 2.1.4 sppt
2015-05-30 14:09:19 +01:00
Allan Jardine
59457b63e6
Fix example: Server-side processing data source example column titles were incorrect
2015-05-30 14:09:03 +01:00
Allan Jardine
09ff48a486
New: Add numbers
paging option for dt-init pagingType
to round off the full set of basic options
...
Thank you `rubenduiveman` for suggesting this enhancement
2015-05-13 13:51:23 +01:00
Allan Jardine
be7a63761b
Dev: Updating Editor build for new framework structure
2015-05-12 09:52:16 +01:00
Allan Jardine
05d796d0a2
Fix - example: Typo in description of dom
example
...
Thanks _repjackson_ for noting the error
2015-05-12 09:52:00 +01:00
Allan Jardine
c61947f5f3
Fix: dt-init scrollX
could not be given as false
- it still enabled x-scrolling
2015-05-06 16:18:28 +01:00
Allan Jardine
7081a1a7c6
1.10.8-dev version flag
2015-05-06 11:31:46 +01:00
Allan Jardine
768f7cdc46
Fix: Disabling smart column width for IE67 as it can cause the browser to crash
2015-05-06 11:30:27 +01:00
Allan Jardine
17130d2fd5
Fix: When scrolling is enabled and column visiblity is toggled a Javascript error would occur due to the column width calculation method cloning the wrong header element.
...
This fixes thread 27612 and DataTables/DataTables issue #553
2015-05-06 11:30:10 +01:00
Allan Jardine
8236be574d
Update - example: Scrolling example updated to use the nowrap
class to prevent wrapping of content and thus force scrolling
2015-05-06 11:29:51 +01:00
Allan Jardine
9a7cf935ea
Fix examples: Example pages styling updated to work better when operating with Bootstrap and Foundation styled table examples
2015-05-06 11:28:52 +01:00
Allan Jardine
ded5ee322c
Dev: Bringing the integration files for the various frameworks that DataTables supports into the repo
...
This is so each repo defines its own integration files, ensuring that
they are both easy to update and that they are up-to-date. I will be
blogging about this change next week.
2015-05-06 11:27:47 +01:00
Allan Jardine
fc64e71e1c
DataTables 1.10.7 release
2015-04-30 15:08:43 +01:00
Allan Jardine
2f85ace4a1
Fix: IE6/7 could crash completely when using auto width due to a clone of a clone occuring. This was bad for performance anyway and has been rewritten to resolve both the IE crash and performance issue
...
See thread 27428 for further information
2015-04-30 14:01:55 +01:00
Allan Jardine
bf0b4d0a42
Dev: Don't syntax highlight in IE6/7 as it slows them down hugely
2015-04-30 14:01:36 +01:00
Allan Jardine
5484fdaec3
Fix: For convenience $.fn.dataTable.Api()
will now automatically construct a new DataTables API instance (i.e. it is functionality identical to calling new $.fn.dataTable.Api()
. This addresses an outstanding todo item and an error in instanceof
logic for the exisiting constructor
2015-04-30 14:01:16 +01:00
Allan Jardine
362ec532f2
Dev: Update to jQuery 1.11.3
2015-04-30 14:00:53 +01:00
Allan Jardine
432a0dc18a
New: dt-event xhr
can now return true
to have DataTables not trigger the dt-event error
event for cases where you've handled the error yourself now that dt-event xhr
is triggered on error as well
2015-04-30 10:02:16 +01:00
Allan Jardine
e4a12ed19d
New: Always trigger the dt-event xhr
event on completion of an Ajax request, regardless of whether it was successful or in error
...
New: The jQuery XHR object is passed into the `dt-event xhr` event as the fourth parameter
* This fixes DataTables/DataTables #542
2015-04-29 21:52:34 +01:00
Allan Jardine
8376ac8412
Fix: IE6/7 could crash when loading a DataTable on page load due to the binding of a resize
event listener on the window object
...
* Reported in thread 27428
* This SO thread was helpful: http://stackoverflow.com/questions/1264443
2015-04-29 21:19:40 +01:00
Allan Jardine
8423b06fae
Dev: On Bootstrap CSS demo pages don't change the Bootstrap default font
2015-04-29 17:10:34 +01:00
Allan Jardine
2176acf2fb
Fix: $.map()
expects an array, but a string could be passed in during smart search, which could cause an error with the latest jQuery libraries
...
This fixes DataTables/DataTables #546
2015-04-29 11:13:38 +01:00
Allan Jardine
b2adfad09c
New - API: dt-api i18n()
method to provide easy i18n support for developers working on extensions for DataTables and to allow dt-init language
to be used as a central point of configuration for the language strings used by the table.
2015-04-29 11:13:16 +01:00
Allan Jardine
0234e9e502
Fix: Singular selectors (dt-api row()
for example) did not reduce their result sets to a single item
2015-04-16 12:43:43 +01:00
Allan Jardine
c8b924772d
New: External interface to allow the selector options -type selector-modifier
object be extended by plug-ins, providing additional selector options. In the first instance this will be used by the new Selector extension that will add the ability to select rows, columns and cells by their selected status.
...
The main change here is to modify `_selector_run` to loop over the
extension functions (if there are any). This involves passing extra
information to the function (selector type so the correct extension can
be used, settings object and selector modifier to pass on to the
extension method).
The _selector_opts function has also been updated to give the ability to
use unknown properteries through a $.extend, rather than writing a three
property object.
2015-04-16 12:43:24 +01:00
Allan Jardine
b7c5f8c07f
New - API: dt-api any()
method which can be used to check if the API result set contains any results or not
...
This is useful for the multi-table aware API as it may contain inner
arrays, which themselves may or may not be empty
2015-04-15 17:05:13 +01:00
Allan Jardine
caa9f2f84b
DataTables 1.10.7 development underway
2015-04-15 17:04:55 +01:00
Allan Jardine
de3a4bb72e
Fix - CSS: Remove redundant CSS expressions
...
The specificity of pesudo selectors ranks higher than class selectors,
so `tr:hover` will always rank higher than `tr.odd`. Thus giving
`tr:hover, tr.odd:hover` is redundant and this commit removes that
redundancy.
For more about CSS selector specificity see the MDN documentation:
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
2015-04-15 17:04:37 +01:00
Allan Jardine
fc8cc9bbd2
Fix - docs: dt-api iterator()
was missing parameters (incorrect xml tag)
...
Dev: Remove comment about using iteratorNew - that was wrong. The
`iterator` method uses a returns parameter now
2015-04-15 17:03:08 +01:00
Allan Jardine
2d6108d00c
Fix - docs: dt-api row().child()
should have the class name as optional
2015-04-15 17:02:08 +01:00
Allan Jardine
9b539ba8b0
Update: Contributing documentation to direct support requests to the
...
DataTables forums
2015-04-06 22:08:10 +01:00
Allan Jardine
34abc58d70
Release 1.10.6
2015-04-03 14:47:53 +01:00
Allan Jardine
ba42edc3f1
Fix: If a loaded state does not contain a parameter it could throw an error. This could occur when the stateSave event removed parameters from the state object
...
This fixes DataTables/DataTables #24
2015-04-03 14:16:57 +01:00