Bootstrap 3.3.5 Update (and other dependencies)

This commit is contained in:
David Miller
2015-06-22 13:25:30 -04:00
parent c1fc29bfe4
commit 0b77a7484f
88 changed files with 1670 additions and 935 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "datatables-responsive",
"version": "1.0.5",
"version": "1.0.6",
"main": [
"js/dataTables.responsive.js",
"css/dataTables.responsive.css"
@@ -10,11 +10,11 @@
"datatables": ">=1.10.1"
},
"homepage": "https://github.com/DataTables/Responsive",
"_release": "1.0.5",
"_release": "1.0.6",
"_resolution": {
"type": "version",
"tag": "1.0.5",
"commit": "2c66f3b8b2dd04b83443c2695f8845285876e8e1"
"tag": "1.0.6",
"commit": "4000f7d1876bc2cb6e1e75eddef431c5fff83afd"
},
"_source": "git://github.com/DataTables/Responsive.git",
"_target": "~1.0.3",

View File

@@ -1,6 +1,6 @@
{
"name": "datatables-responsive",
"version": "1.0.5",
"version": "1.0.6",
"main": [
"js/dataTables.responsive.js",
"css/dataTables.responsive.css"

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html-complex-header" table-class="display nowrap" order="5">
<css lib="datatables responsive">
th {
position: relative;
min-height: 41px;
}
span {
display: block;
position: absolute;
left: 0;
right: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
</css>
<js lib="jquery datatables responsive">
<![CDATA[
$(document).ready(function() {
// jQuery update a column title from the demo table to contain a long description
// You would not need to do this in your own code.
$('#example thead tr:eq(0) th:eq(2)').html("This is a really long column title!");
// Wrap the colspan'ing header cells with a span so they can be positioned
// absolutely - filling the available space, and no more.
$('#example thead th[colspan]').wrapInner( '<span/>' ).append( '&nbsp;' );
// Standard initialisation
$('#example').DataTable( {
responsive: true,
paging: false
} );
} );
]]>
</js>
<title lib="Responsive">Complex headers (rowspan / colspan)</title>
<info><![CDATA[
This example shows how Responsive can be used with _complex headers_ (i.e. headers that contain `colspan` attributes for one or more cells). As Responsive will removed columns one at a time the cell with the `colspan` attribute can end up forcing the width of a column, disrupting the flow. Rather than removing all columns under the `colspan` cell, we want to reduce the amount of text that is visible in that cell. This example shows how that can be achieved thought a little bit of jQuery and CSS.
We use jQuery to find the header cells which have a `colspan` attribute and wrap their contents in a `-tag span` tag. That `-tag span` is then set to `position: absolute;` using `text-overflow: ellipsis`. The result is that the text of the `colspan` cell will reduce automatically to fit the available area based on the contents of the column cells below it.
This functionality is not currently built into Responsive. It likely will be for v1.1.
]]></info>
</dt-example>

View File

@@ -1,11 +1,11 @@
/*! Responsive 1.0.5
/*! Responsive 1.0.6
* 2014-2015 SpryMedia Ltd - datatables.net/license
*/
/**
* @summary Responsive
* @description Responsive tables plug-in for DataTables
* @version 1.0.5
* @version 1.0.6
* @file dataTables.responsive.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
@@ -646,14 +646,25 @@ Responsive.prototype = {
.append( cells )
.appendTo( clonedHeader );
// In the inline case extra padding is applied to the first column to
// give space for the show / hide icon. We need to use this in the
// calculation
if ( this.c.details.type === 'inline' ) {
$(clonedTable).addClass( 'dtr-inline collapsed' );
}
var inserted = $('<div/>')
.css( {
width: 1,
height: 1,
overflow: 'hidden'
} )
.append( clonedTable )
.insertBefore( dt.table().node() );
.append( clonedTable );
// Remove columns which are not to be included
inserted.find('th.never, td.never').remove();
inserted.insertBefore( dt.table().node() );
// The cloned header now contains the smallest that each column can be
dt.columns().eq(0).each( function ( idx ) {
@@ -815,7 +826,7 @@ Api.register( 'responsive.recalc()', function () {
* @name Responsive.version
* @static
*/
Responsive.version = '1.0.5';
Responsive.version = '1.0.6';
$.fn.dataTable.Responsive = Responsive;
@@ -833,8 +844,6 @@ $(document).on( 'init.dt.dtr', function (e, settings, json) {
settings.oInit.responsive ||
DataTable.defaults.responsive
) {
console.log( e.namespace );
var init = settings.oInit.responsive;
if ( init !== false ) {