datatables.net-responsive
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,3 +0,3 @@ | ||
/*! Responsive 2.0.1 | ||
* 2014-2015 SpryMedia Ltd - datatables.net/license | ||
/*! Responsive 2.0.2 | ||
* 2014-2016 SpryMedia Ltd - datatables.net/license | ||
*/ | ||
@@ -8,7 +8,7 @@ | ||
* @description Responsive tables plug-in for DataTables | ||
* @version 2.0.1 | ||
* @version 2.0.2 | ||
* @file dataTables.responsive.js | ||
* @author SpryMedia Ltd (www.sprymedia.co.uk) | ||
* @contact www.sprymedia.co.uk/contact | ||
* @copyright Copyright 2014-2015 SpryMedia Ltd. | ||
* @copyright Copyright 2014-2016 SpryMedia Ltd. | ||
* | ||
@@ -117,5 +117,12 @@ * This source file is free software, available under the following license: | ||
// details is an object, but for simplicity the user can give it as a string | ||
// or a boolean | ||
if ( opts && typeof opts.details === 'string' ) { | ||
opts.details = { type: opts.details }; | ||
} | ||
else if ( opts && opts.details === false ) { | ||
opts.details = { type: false }; | ||
} | ||
else if ( opts && opts.details === true ) { | ||
opts.details = { type: 'inline' }; | ||
} | ||
@@ -223,8 +230,5 @@ this.c = $.extend( true, {}, Responsive.defaults, DataTable.defaults.responsive, opts ); | ||
dt.on( 'column-reorder.dtr', function (e, settings, details) { | ||
// This requires ColReorder 1.2.1 or newer | ||
if ( details.drop ) { | ||
that._classLogic(); | ||
that._resizeAuto(); | ||
that._resize(); | ||
} | ||
that._classLogic(); | ||
that._resizeAuto(); | ||
that._resize(); | ||
} ); | ||
@@ -292,3 +296,2 @@ | ||
// Class logic - determine which columns are in this breakpoint based | ||
@@ -658,3 +661,4 @@ // on the classes. If no class control (i.e. `auto`) then `-` is used | ||
hidden: dt.column( i ).visible() && !that.s.current[ i ], | ||
columnIndex: i | ||
columnIndex: i, | ||
rowIndex: rowIdx | ||
}; | ||
@@ -1085,3 +1089,3 @@ } ); | ||
return col.hidden ? | ||
'<li data-dtr-index="'+col.columnIndex+'">'+ | ||
'<li data-dtr-index="'+col.columnIndex+'" data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+ | ||
'<span class="dtr-title">'+ | ||
@@ -1168,3 +1172,3 @@ col.title+ | ||
*/ | ||
Responsive.version = '2.0.1'; | ||
Responsive.version = '2.0.2'; | ||
@@ -1171,0 +1175,0 @@ |
{ | ||
"name": "datatables.net-responsive", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Responsive for DataTables ", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36332
1028