Skip to content

Commit

Permalink
Fix - docs: dt-event xhr example descriptions were reversed
Browse files Browse the repository at this point in the history
- Thread 33084. Thanks friggle!
  • Loading branch information
Allan Jardine committed Feb 9, 2016
1 parent d6a597d commit cd7377f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/event/xhr.xml
Expand Up @@ -36,7 +36,7 @@
Please note that, as with all DataTables emitted events, this event is triggered with the `dt` namespace. As such, to listen for this event, you must also use the `dt` namespace by simply appending `.dt` to your event name, as shown in the example below.
</description>

<example title="Use a custom property returned from the server in another DOM element"><![CDATA[
<example title="Pre-process the data returned from the server"><![CDATA[
$('#example')
.on('xhr.dt', function ( e, settings, json, xhr ) {
for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {
Expand All @@ -49,7 +49,7 @@ $('#example')
} );
]]></example>

<example title="Pre-process the data returned from the server"><![CDATA[
<example title="Use a custom property returned from the server in another DOM element"><![CDATA[
$('#example')
.on('xhr.dt', function ( e, settings, json, xhr ) {
$('#status').html( json.status );
Expand Down

0 comments on commit cd7377f

Please sign in to comment.