jquery-datatables 1.10.15 → 1.10.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -16
- data/Rakefile +46 -27
- data/app/assets/javascripts/datatables/dataTables.bootstrap4.js +3 -3
- data/app/assets/javascripts/datatables/dataTables.jqueryui.js +6 -6
- data/app/assets/javascripts/datatables/extensions/AutoFill/dataTables.autoFill.js +5 -5
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap.js +3 -1
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap4.js +3 -1
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.colVis.js +2 -1
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.flash.js +74 -69
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.foundation.js +3 -1
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.html5.js +86 -63
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.print.js +16 -22
- data/app/assets/javascripts/datatables/extensions/Buttons/dataTables.buttons.js +131 -3
- data/app/assets/javascripts/datatables/extensions/ColReorder/dataTables.colReorder.js +12 -6
- data/app/assets/javascripts/datatables/extensions/FixedColumns/dataTables.fixedColumns.js +8 -5
- data/app/assets/javascripts/datatables/extensions/FixedHeader/dataTables.fixedHeader.js +14 -9
- data/app/assets/javascripts/datatables/extensions/KeyTable/dataTables.keyTable.js +103 -8
- data/app/assets/javascripts/datatables/extensions/Responsive/dataTables.responsive.js +106 -6
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.bootstrap4.js +1 -1
- data/app/assets/javascripts/datatables/extensions/RowGroup/dataTables.rowGroup.js +8 -6
- data/app/assets/javascripts/datatables/extensions/RowReorder/dataTables.rowReorder.js +68 -35
- data/app/assets/javascripts/datatables/extensions/Scroller/dataTables.scroller.js +71 -10
- data/app/assets/javascripts/datatables/extensions/Select/dataTables.select.js +11 -7
- data/app/assets/javascripts/datatables/jquery.dataTables.js +19 -121
- data/app/assets/stylesheets/datatables/dataTables.bootstrap.scss +252 -0
- data/app/assets/stylesheets/datatables/{dataTables.bootstrap2.css → dataTables.bootstrap2.scss} +6 -6
- data/app/assets/stylesheets/datatables/dataTables.bootstrap4.scss +262 -0
- data/app/assets/stylesheets/datatables/dataTables.foundation.scss +154 -0
- data/app/assets/stylesheets/datatables/dataTables.jqueryui.scss +93 -0
- data/app/assets/stylesheets/datatables/dataTables.material.scss +101 -0
- data/app/assets/stylesheets/datatables/dataTables.semanticui.scss +138 -0
- data/app/assets/stylesheets/datatables/dataTables.uikit.scss +195 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap.scss +8 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap4.scss +8 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.scss +125 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.foundation.scss +13 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.jqueryui.scss +10 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.semanticui.scss +8 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.scss +40 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.scss +53 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.scss +141 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.scss +82 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.scss +98 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.scss +53 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap4.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.dataTables.scss +17 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.foundation.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.semanticui.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.scss +50 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap4.scss +11 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.dataTables.scss +22 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/{fixedColumns.foundation.css → fixedColumns.foundation.scss} +15 -6
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.jqueryui.scss +16 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.semanticui.scss +41 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.bootstrap4.css → fixedHeader.bootstrap.scss} +6 -5
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.foundation.css → fixedHeader.bootstrap4.scss} +6 -5
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.dataTables.scss +21 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.bootstrap.css → fixedHeader.foundation.scss} +6 -5
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/{fixedHeader.semanticui.css → fixedHeader.jqueryui.scss} +7 -3
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.semanticui.scss +16 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap4.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.scss +10 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.foundation.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.semanticui.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap.scss +8 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap4.scss +9 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.dataTables.scss +240 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.foundation.scss +10 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.semanticui.scss +9 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap4.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.dataTables.scss +9 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.foundation.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.semanticui.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap.scss +5 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/{semanticui.scss → rowReorder.bootstrap4.scss} +0 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.dataTables.scss +26 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.foundation.scss +5 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.semanticui.scss +5 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap.scss +9 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap4.scss +9 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.scss +36 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.foundation.scss +31 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.jqueryui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.semanticui.scss +2 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap.scss +17 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap4.scss +17 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.dataTables.scss +143 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.foundation.scss +18 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.jqueryui.scss +4 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.semanticui.scss +14 -0
- data/app/assets/stylesheets/datatables/jquery.dataTables.scss +599 -0
- data/lib/generators/jquery/datatables/install_generator.rb +1 -1
- data/lib/generators/jquery/datatables/templates/bootstrap.js.tt +3 -1
- data/lib/generators/jquery/datatables/templates/bootstrap.scss.tt +15 -0
- data/lib/generators/jquery/datatables/templates/bootstrap4.js.tt +3 -1
- data/lib/generators/jquery/datatables/templates/bootstrap4.scss.tt +15 -0
- data/lib/generators/jquery/datatables/templates/foundation.js.tt +4 -4
- data/lib/generators/jquery/datatables/templates/foundation.scss.tt +33 -0
- data/lib/generators/jquery/datatables/templates/jqueryui.js.tt +7 -1
- data/lib/generators/jquery/datatables/templates/jqueryui.scss.tt +15 -0
- data/lib/generators/jquery/datatables/templates/material.js.tt +3 -1
- data/lib/generators/jquery/datatables/templates/material.scss.tt +1 -0
- data/lib/generators/jquery/datatables/templates/regular.js.tt +4 -3
- data/lib/generators/jquery/datatables/templates/regular.scss.tt +33 -0
- data/lib/generators/jquery/datatables/templates/semanticui.js.tt +4 -2
- data/lib/generators/jquery/datatables/templates/semanticui.scss.tt +15 -0
- data/lib/generators/jquery/datatables/templates/uikit.js.tt +4 -2
- data/lib/generators/jquery/datatables/templates/uikit.scss.tt +1 -0
- data/lib/jquery-datatables/version.rb +1 -1
- metadata +86 -90
- data/app/assets/stylesheets/datatables/dataTables.bootstrap.css +0 -184
- data/app/assets/stylesheets/datatables/dataTables.bootstrap4.css +0 -194
- data/app/assets/stylesheets/datatables/dataTables.foundation.css +0 -118
- data/app/assets/stylesheets/datatables/dataTables.jqueryui.css +0 -482
- data/app/assets/stylesheets/datatables/dataTables.material.css +0 -87
- data/app/assets/stylesheets/datatables/dataTables.semanticui.css +0 -102
- data/app/assets/stylesheets/datatables/dataTables.uikit.css +0 -146
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap.css +0 -81
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap4.css +0 -81
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.css +0 -92
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.foundation.css +0 -85
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.jqueryui.css +0 -85
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.semanticui.css +0 -81
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.css +0 -158
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.css +0 -219
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.css +0 -354
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.css +0 -189
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.css +0 -218
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.css +0 -171
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap4.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.dataTables.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.foundation.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.jqueryui.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.semanticui.css +0 -11
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.css +0 -44
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap4.css +0 -44
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.dataTables.css +0 -18
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.jqueryui.css +0 -8
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.semanticui.css +0 -16
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.dataTables.css +0 -19
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.jqueryui.css +0 -15
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap4.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.foundation.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.jqueryui.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.semanticui.css +0 -5
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap.css +0 -181
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap4.css +0 -181
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.dataTables.css +0 -178
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.foundation.css +0 -181
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.jqueryui.css +0 -178
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.semanticui.css +0 -181
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.bootstrap4.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.dataTables.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.foundation.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.jqueryui.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.semanticui.css +0 -4
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap4.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.dataTables.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.foundation.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.jqueryui.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.semanticui.css +0 -22
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap.css +0 -24
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap4.css +0 -24
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.css +0 -20
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.foundation.css +0 -17
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.jqueryui.css +0 -20
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.semanticui.css +0 -20
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap.css +0 -115
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap4.css +0 -115
- data/app/assets/stylesheets/datatables/extensions/Select/select.dataTables.css +0 -105
- data/app/assets/stylesheets/datatables/extensions/Select/select.foundation.css +0 -117
- data/app/assets/stylesheets/datatables/extensions/Select/select.jqueryui.css +0 -105
- data/app/assets/stylesheets/datatables/extensions/Select/select.semanticui.css +0 -110
- data/app/assets/stylesheets/datatables/jquery.dataTables.css +0 -455
- data/app/assets/stylesheets/datatables/jquery.dataTables_themeroller.css +0 -416
- data/lib/generators/jquery/datatables/templates/bootstrap.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/bootstrap2.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/bootstrap2.js.tt +0 -22
- data/lib/generators/jquery/datatables/templates/bootstrap4.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/foundation.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/jqueryui.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/material.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/regular.css.tt +0 -15
- data/lib/generators/jquery/datatables/templates/semanticui.css.tt +0 -16
- data/lib/generators/jquery/datatables/templates/uikit.css.tt +0 -15
@@ -1,11 +1,11 @@
|
|
1
|
-
/*! DataTables 1.10.
|
1
|
+
/*! DataTables 1.10.16
|
2
2
|
* ©2008-2017 SpryMedia Ltd - datatables.net/license
|
3
3
|
*/
|
4
4
|
|
5
5
|
/**
|
6
6
|
* @summary DataTables
|
7
7
|
* @description Paginate, search and order HTML tables
|
8
|
-
* @version 1.10.
|
8
|
+
* @version 1.10.16
|
9
9
|
* @file jquery.dataTables.js
|
10
10
|
* @author SpryMedia Ltd
|
11
11
|
* @contact www.datatables.net
|
@@ -1023,8 +1023,7 @@
|
|
1023
1023
|
[ "iCookieDuration", "iStateDuration" ], // backwards compat
|
1024
1024
|
[ "oSearch", "oPreviousSearch" ],
|
1025
1025
|
[ "aoSearchCols", "aoPreSearchCols" ],
|
1026
|
-
[ "iDisplayLength", "_iDisplayLength" ]
|
1027
|
-
[ "bJQueryUI", "bJUI" ]
|
1026
|
+
[ "iDisplayLength", "_iDisplayLength" ]
|
1028
1027
|
] );
|
1029
1028
|
_fnMap( oSettings.oScroll, oInit, [
|
1030
1029
|
[ "sScrollX", "sX" ],
|
@@ -1054,31 +1053,7 @@
|
|
1054
1053
|
|
1055
1054
|
var oClasses = oSettings.oClasses;
|
1056
1055
|
|
1057
|
-
|
1058
|
-
if ( oInit.bJQueryUI )
|
1059
|
-
{
|
1060
|
-
/* Use the JUI classes object for display. You could clone the oStdClasses object if
|
1061
|
-
* you want to have multiple tables with multiple independent classes
|
1062
|
-
*/
|
1063
|
-
$.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );
|
1064
|
-
|
1065
|
-
if ( oInit.sDom === defaults.sDom && defaults.sDom === "lfrtip" )
|
1066
|
-
{
|
1067
|
-
/* Set the DOM to use a layout suitable for jQuery UI's theming */
|
1068
|
-
oSettings.sDom = '<"H"lfr>t<"F"ip>';
|
1069
|
-
}
|
1070
|
-
|
1071
|
-
if ( ! oSettings.renderer ) {
|
1072
|
-
oSettings.renderer = 'jqueryui';
|
1073
|
-
}
|
1074
|
-
else if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {
|
1075
|
-
oSettings.renderer.header = 'jqueryui';
|
1076
|
-
}
|
1077
|
-
}
|
1078
|
-
else
|
1079
|
-
{
|
1080
|
-
$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
|
1081
|
-
}
|
1056
|
+
$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
|
1082
1057
|
$this.addClass( oClasses.sTable );
|
1083
1058
|
|
1084
1059
|
|
@@ -2057,6 +2032,9 @@
|
|
2057
2032
|
{
|
2058
2033
|
oOptions.sClass = oOptions.className;
|
2059
2034
|
}
|
2035
|
+
if ( oOptions.sClass ) {
|
2036
|
+
th.addClass( oOptions.sClass );
|
2037
|
+
}
|
2060
2038
|
|
2061
2039
|
$.extend( oCol, oOptions );
|
2062
2040
|
_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
|
@@ -4831,7 +4809,12 @@
|
|
4831
4809
|
} );
|
4832
4810
|
|
4833
4811
|
for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
|
4834
|
-
select[0][ i ] = new Option(
|
4812
|
+
select[0][ i ] = new Option(
|
4813
|
+
typeof language[i] === 'number' ?
|
4814
|
+
settings.fnFormatNumber( language[i] ) :
|
4815
|
+
language[i],
|
4816
|
+
lengths[i]
|
4817
|
+
);
|
4835
4818
|
}
|
4836
4819
|
|
4837
4820
|
var div = $('<div><label/></div>').addClass( classes.sLength );
|
@@ -8053,6 +8036,11 @@
|
|
8053
8036
|
_fnDeleteIndex( settings.aiDisplay, row );
|
8054
8037
|
_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
|
8055
8038
|
|
8039
|
+
// For server-side processing tables - subtract the deleted row from the count
|
8040
|
+
if ( settings._iRecordsDisplay > 0 ) {
|
8041
|
+
settings._iRecordsDisplay--;
|
8042
|
+
}
|
8043
|
+
|
8056
8044
|
// Check for an 'overflow' they case for displaying the table
|
8057
8045
|
_fnLengthOverflow( settings );
|
8058
8046
|
|
@@ -9327,15 +9315,6 @@
|
|
9327
9315
|
classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
|
9328
9316
|
);
|
9329
9317
|
|
9330
|
-
if ( settings.bJUI ) {
|
9331
|
-
$('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();
|
9332
|
-
$('th, td', thead).each( function () {
|
9333
|
-
var wrapper = $('div.'+classes.sSortJUIWrapper, this);
|
9334
|
-
$(this).append( wrapper.contents() );
|
9335
|
-
wrapper.detach();
|
9336
|
-
} );
|
9337
|
-
}
|
9338
|
-
|
9339
9318
|
// Add the TR elements back into the table in their original order
|
9340
9319
|
jqTbody.children().detach();
|
9341
9320
|
jqTbody.append( rows );
|
@@ -9434,7 +9413,7 @@
|
|
9434
9413
|
* @type string
|
9435
9414
|
* @default Version number
|
9436
9415
|
*/
|
9437
|
-
DataTable.version = "1.10.
|
9416
|
+
DataTable.version = "1.10.16";
|
9438
9417
|
|
9439
9418
|
/**
|
9440
9419
|
* Private data store, containing all of the settings objects that are
|
@@ -10363,26 +10342,6 @@
|
|
10363
10342
|
"bInfo": true,
|
10364
10343
|
|
10365
10344
|
|
10366
|
-
/**
|
10367
|
-
* Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
|
10368
|
-
* slightly different and additional mark-up from what DataTables has
|
10369
|
-
* traditionally used).
|
10370
|
-
* @type boolean
|
10371
|
-
* @default false
|
10372
|
-
*
|
10373
|
-
* @dtopt Features
|
10374
|
-
* @name DataTable.defaults.jQueryUI
|
10375
|
-
*
|
10376
|
-
* @example
|
10377
|
-
* $(document).ready( function() {
|
10378
|
-
* $('#example').dataTable( {
|
10379
|
-
* "jQueryUI": true
|
10380
|
-
* } );
|
10381
|
-
* } );
|
10382
|
-
*/
|
10383
|
-
"bJQueryUI": false,
|
10384
|
-
|
10385
|
-
|
10386
10345
|
/**
|
10387
10346
|
* Allows the end user to select the size of a formatted page from a select
|
10388
10347
|
* menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
|
@@ -13663,14 +13622,6 @@
|
|
13663
13622
|
*/
|
13664
13623
|
"_iRecordsDisplay": 0,
|
13665
13624
|
|
13666
|
-
/**
|
13667
|
-
* Flag to indicate if jQuery UI marking and classes should be used.
|
13668
|
-
* Note that this parameter will be set by the initialisation routine. To
|
13669
|
-
* set a default use {@link DataTable.defaults}.
|
13670
|
-
* @type boolean
|
13671
|
-
*/
|
13672
|
-
"bJUI": null,
|
13673
|
-
|
13674
13625
|
/**
|
13675
13626
|
* The classes to use for the table
|
13676
13627
|
* @type object
|
@@ -14448,59 +14399,6 @@
|
|
14448
14399
|
} );
|
14449
14400
|
|
14450
14401
|
|
14451
|
-
(function() {
|
14452
|
-
|
14453
|
-
// Reused strings for better compression. Closure compiler appears to have a
|
14454
|
-
// weird edge case where it is trying to expand strings rather than use the
|
14455
|
-
// variable version. This results in about 200 bytes being added, for very
|
14456
|
-
// little preference benefit since it this run on script load only.
|
14457
|
-
var _empty = '';
|
14458
|
-
_empty = '';
|
14459
|
-
|
14460
|
-
var _stateDefault = _empty + 'ui-state-default';
|
14461
|
-
var _sortIcon = _empty + 'css_right ui-icon ui-icon-';
|
14462
|
-
var _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';
|
14463
|
-
|
14464
|
-
$.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {
|
14465
|
-
/* Full numbers paging buttons */
|
14466
|
-
"sPageButton": "fg-button ui-button "+_stateDefault,
|
14467
|
-
"sPageButtonActive": "ui-state-disabled",
|
14468
|
-
"sPageButtonDisabled": "ui-state-disabled",
|
14469
|
-
|
14470
|
-
/* Features */
|
14471
|
-
"sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
|
14472
|
-
"ui-buttonset-multi paging_", /* Note that the type is postfixed */
|
14473
|
-
|
14474
|
-
/* Sorting */
|
14475
|
-
"sSortAsc": _stateDefault+" sorting_asc",
|
14476
|
-
"sSortDesc": _stateDefault+" sorting_desc",
|
14477
|
-
"sSortable": _stateDefault+" sorting",
|
14478
|
-
"sSortableAsc": _stateDefault+" sorting_asc_disabled",
|
14479
|
-
"sSortableDesc": _stateDefault+" sorting_desc_disabled",
|
14480
|
-
"sSortableNone": _stateDefault+" sorting_disabled",
|
14481
|
-
"sSortJUIAsc": _sortIcon+"triangle-1-n",
|
14482
|
-
"sSortJUIDesc": _sortIcon+"triangle-1-s",
|
14483
|
-
"sSortJUI": _sortIcon+"carat-2-n-s",
|
14484
|
-
"sSortJUIAscAllowed": _sortIcon+"carat-1-n",
|
14485
|
-
"sSortJUIDescAllowed": _sortIcon+"carat-1-s",
|
14486
|
-
"sSortJUIWrapper": "DataTables_sort_wrapper",
|
14487
|
-
"sSortIcon": "DataTables_sort_icon",
|
14488
|
-
|
14489
|
-
/* Scrolling */
|
14490
|
-
"sScrollHead": "dataTables_scrollHead "+_stateDefault,
|
14491
|
-
"sScrollFoot": "dataTables_scrollFoot "+_stateDefault,
|
14492
|
-
|
14493
|
-
/* Misc */
|
14494
|
-
"sHeaderTH": _stateDefault,
|
14495
|
-
"sFooterTH": _stateDefault,
|
14496
|
-
"sJUIHeader": _headerFooter+" ui-corner-tl ui-corner-tr",
|
14497
|
-
"sJUIFooter": _headerFooter+" ui-corner-bl ui-corner-br"
|
14498
|
-
} );
|
14499
|
-
|
14500
|
-
}());
|
14501
|
-
|
14502
|
-
|
14503
|
-
|
14504
14402
|
var extPagination = DataTable.ext.pager;
|
14505
14403
|
|
14506
14404
|
function _numbers ( page, pages ) {
|
@@ -0,0 +1,252 @@
|
|
1
|
+
|
2
|
+
table.dataTable {
|
3
|
+
clear: both;
|
4
|
+
margin-top: 6px !important;
|
5
|
+
margin-bottom: 6px !important;
|
6
|
+
max-width: none !important;
|
7
|
+
border-collapse: separate !important;
|
8
|
+
|
9
|
+
td,
|
10
|
+
th {
|
11
|
+
-webkit-box-sizing: content-box;
|
12
|
+
box-sizing: content-box;
|
13
|
+
|
14
|
+
&.dataTables_empty {
|
15
|
+
text-align: center;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// Style options for the table. Foundation provides its own, but it is also
|
20
|
+
// useful to have a few more for DataTables
|
21
|
+
&.nowrap {
|
22
|
+
th,
|
23
|
+
td {
|
24
|
+
white-space: nowrap;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
// DataTables' built in feature elements
|
31
|
+
div.dataTables_wrapper {
|
32
|
+
div.dataTables_length {
|
33
|
+
label {
|
34
|
+
font-weight: normal;
|
35
|
+
text-align: left;
|
36
|
+
white-space: nowrap;
|
37
|
+
}
|
38
|
+
|
39
|
+
select {
|
40
|
+
width: 75px;
|
41
|
+
display: inline-block;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
div.dataTables_filter {
|
46
|
+
text-align: right;
|
47
|
+
|
48
|
+
label {
|
49
|
+
font-weight: normal;
|
50
|
+
white-space: nowrap;
|
51
|
+
text-align: left;
|
52
|
+
}
|
53
|
+
|
54
|
+
input {
|
55
|
+
margin-left: 0.5em;
|
56
|
+
display: inline-block;
|
57
|
+
width: auto;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
div.dataTables_info {
|
62
|
+
padding-top: 8px;
|
63
|
+
white-space: nowrap;
|
64
|
+
}
|
65
|
+
|
66
|
+
div.dataTables_paginate {
|
67
|
+
margin: 0;
|
68
|
+
white-space: nowrap;
|
69
|
+
text-align: right;
|
70
|
+
|
71
|
+
ul.pagination {
|
72
|
+
margin: 2px 0;
|
73
|
+
white-space: nowrap;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
div.dataTables_processing {
|
78
|
+
position: absolute;
|
79
|
+
top: 50%;
|
80
|
+
left: 50%;
|
81
|
+
width: 200px;
|
82
|
+
margin-left: -100px;
|
83
|
+
margin-top: -26px;
|
84
|
+
text-align: center;
|
85
|
+
padding: 1em 0;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
// Sorting - using Glyphicons
|
91
|
+
table.dataTable thead {
|
92
|
+
> tr > th,
|
93
|
+
> tr > td {
|
94
|
+
&.sorting_asc,
|
95
|
+
&.sorting_desc,
|
96
|
+
&.sorting {
|
97
|
+
padding-right: 30px;
|
98
|
+
}
|
99
|
+
|
100
|
+
&:active {
|
101
|
+
outline: none;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.sorting,
|
106
|
+
.sorting_asc,
|
107
|
+
.sorting_desc,
|
108
|
+
.sorting_asc_disabled,
|
109
|
+
.sorting_desc_disabled {
|
110
|
+
cursor: pointer;
|
111
|
+
position: relative;
|
112
|
+
|
113
|
+
&:after {
|
114
|
+
position: absolute;
|
115
|
+
bottom: 8px;
|
116
|
+
right: 8px;
|
117
|
+
display: block;
|
118
|
+
font-family: 'Glyphicons Halflings';
|
119
|
+
opacity: 0.5;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.sorting:after {
|
124
|
+
opacity: 0.2;
|
125
|
+
content: "\e150"; /* sort */
|
126
|
+
}
|
127
|
+
|
128
|
+
.sorting_asc:after {
|
129
|
+
content: "\e155"; /* sort-by-attributes */
|
130
|
+
}
|
131
|
+
|
132
|
+
.sorting_desc:after {
|
133
|
+
content: "\e156"; /* sort-by-attributes-alt */
|
134
|
+
}
|
135
|
+
|
136
|
+
.sorting_asc_disabled:after,
|
137
|
+
.sorting_desc_disabled:after {
|
138
|
+
color: #eee;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
// Scrolling
|
144
|
+
div.dataTables_scrollHead table.dataTable {
|
145
|
+
margin-bottom: 0 !important;
|
146
|
+
}
|
147
|
+
|
148
|
+
div.dataTables_scrollBody {
|
149
|
+
> table {
|
150
|
+
border-top: none;
|
151
|
+
margin-top: 0 !important;
|
152
|
+
margin-bottom: 0 !important;
|
153
|
+
|
154
|
+
> thead { // Hide sort icons
|
155
|
+
.sorting:after,
|
156
|
+
.sorting_asc:after,
|
157
|
+
.sorting_desc:after {
|
158
|
+
display: none;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
> tbody > tr:first-child > th,
|
163
|
+
> tbody > tr:first-child > td {
|
164
|
+
border-top: none;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
div.dataTables_scrollFoot {
|
170
|
+
> .dataTables_scrollFootInner {
|
171
|
+
box-sizing: content-box;
|
172
|
+
|
173
|
+
> table {
|
174
|
+
margin-top: 0 !important;
|
175
|
+
border-top: none;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
|
181
|
+
// Responsive
|
182
|
+
@media screen and (max-width: 767px) {
|
183
|
+
div.dataTables_wrapper {
|
184
|
+
div.dataTables_length,
|
185
|
+
div.dataTables_filter,
|
186
|
+
div.dataTables_info,
|
187
|
+
div.dataTables_paginate {
|
188
|
+
text-align: center;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
//
|
195
|
+
// Bootstrap provides a range of styling options for table's via class name
|
196
|
+
// that we want to full support. They sometimes require some customisations
|
197
|
+
//
|
198
|
+
|
199
|
+
// Condensed
|
200
|
+
table.dataTable.table-condensed {
|
201
|
+
> thead > tr > th {
|
202
|
+
padding-right: 20px;
|
203
|
+
}
|
204
|
+
|
205
|
+
.sorting:after,
|
206
|
+
.sorting_asc:after,
|
207
|
+
.sorting_desc:after {
|
208
|
+
top: 6px;
|
209
|
+
right: 6px;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
// Frustratingly the border-collapse:collapse used by Bootstrap makes the column
|
214
|
+
// width calculations when using scrolling impossible to align columns. We have
|
215
|
+
// to use `border-collapse: separate`
|
216
|
+
table.table-bordered.dataTable {
|
217
|
+
th,
|
218
|
+
td {
|
219
|
+
border-left-width: 0;
|
220
|
+
|
221
|
+
&:last-child,
|
222
|
+
&:last-child {
|
223
|
+
border-right-width: 0;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
tbody th,
|
228
|
+
tbody td {
|
229
|
+
border-bottom-width: 0;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
// Bordered table
|
234
|
+
div.dataTables_scrollHead table.table-bordered {
|
235
|
+
border-bottom-width: 0;
|
236
|
+
}
|
237
|
+
|
238
|
+
// Responsive tables. We use rows inside the Bootstrap responsive wrapper,
|
239
|
+
// so they need to have their margin and padding removed
|
240
|
+
div.table-responsive > div.dataTables_wrapper > div.row {
|
241
|
+
margin: 0;
|
242
|
+
|
243
|
+
> div[class^="col-"] {
|
244
|
+
&:first-child {
|
245
|
+
padding-left: 0;
|
246
|
+
}
|
247
|
+
&:last-child {
|
248
|
+
padding-right: 0;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|