Skip to content

Commit

Permalink
-Updated version 0.0.9 with the new patch from the86freak
Browse files Browse the repository at this point in the history
  • Loading branch information
dykstrad committed Jun 25, 2015
1 parent f13819b commit e87cad1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
colResize 0.0.8
colResize 0.0.9
=========

A DataTables plugin for dynamic resizing of columns
Expand Down
5 changes: 3 additions & 2 deletions bower.json
@@ -1,7 +1,7 @@
{
"name": "datatables-colresize",
"description": "A plugin for resizing columns in DataTables",
"version": "0.0.8",
"version": "0.0.9",
"license": "MIT License",
"main": [
"dataTables.colResize.js"
Expand All @@ -14,7 +14,8 @@
"authors": [
"dykstrad",
"tdillan",
"kylealonius"
"kylealonius",
"the86freak"
],
"homepage": "https://github.com/Silvacom/colResize",
"repository": {
Expand Down
7 changes: 4 additions & 3 deletions dataTables.colResize.js
@@ -1,10 +1,10 @@
/*! ColResize 0.0.8
/*! ColResize 0.0.9
*/

/**
* @summary ColResize
* @description Provide the ability to resize columns in a DataTable
* @version 0.0.8
* @version 0.0.9
* @file dataTables.colResize.js
* @author Silvacom Ltd.
*
Expand All @@ -14,6 +14,7 @@
* - dykstrad
* - tdillan (for 0.0.3 and 0.0.5 bug fixes)
* - kylealonius (for 0.0.8 bug fix)
* - the86freak (for 0.0.9 bug fix)
*/

(function (window, document, undefined) {
Expand Down Expand Up @@ -775,7 +776,7 @@
* @type String
* @default As code
*/
ColResize.version = "0.0.8";
ColResize.version = "0.0.9";


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Expand Down
18 changes: 14 additions & 4 deletions examples/js/dataTables.colResize.js
@@ -1,10 +1,10 @@
/*! ColResize 0.0.8
/*! ColResize 0.0.9
*/

/**
* @summary ColResize
* @description Provide the ability to resize columns in a DataTable
* @version 0.0.8
* @version 0.0.9
* @file dataTables.colResize.js
* @author Silvacom Ltd.
*
Expand All @@ -14,6 +14,7 @@
* - dykstrad
* - tdillan (for 0.0.3 and 0.0.5 bug fixes)
* - kylealonius (for 0.0.8 bug fix)
* - the86freak (for 0.0.9 bug fix)
*/

(function (window, document, undefined) {
Expand Down Expand Up @@ -433,7 +434,16 @@

//Store the indexes of the columns the mouse is down on
var idx = that.dom.resizeCol[0].cellIndex;
var idxNeighbour = that.dom.resizeColNeighbour[0].cellIndex;

// the last column has no 'right-side' neighbour
// with fixed this can make the table smaller
if (that.dom.resizeColNeighbour[0] === undefined){
var idxNeighbour = 0;
} else {
var idxNeighbour = that.dom.resizeColNeighbour[0].cellIndex;
}



if (idx === undefined) {
return;
Expand Down Expand Up @@ -766,7 +776,7 @@
* @type String
* @default As code
*/
ColResize.version = "0.0.8";
ColResize.version = "0.0.9";


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Expand Down

0 comments on commit e87cad1

Please sign in to comment.