diff --git a/dragtable.css b/dragtable.css index 12b73be..573db6c 100644 --- a/dragtable.css +++ b/dragtable.css @@ -18,10 +18,6 @@ border-left: 0px; } -.dragtable-sortable li:first-child th, .dragtable-sortable li:first-child td { - border-left: 1px solid #CCC; -} - .ui-sortable-helper { opacity: 0.7;filter: alpha(opacity=70); } diff --git a/jquery.dragtable.js b/jquery.dragtable.js index 00cd9f8..139f887 100644 --- a/jquery.dragtable.js +++ b/jquery.dragtable.js @@ -238,7 +238,7 @@ var width_li = $(this).is(':visible') ? $(this).outerWidth() : 0; sortableHtml += '
  • '; sortableHtml += ''; - var row = thtb.find('> tr > th:nth-child(' + (i + 1) + ')'); + var row = thtb.find('> tr > th:nth-child(' + (i + 1) + '):visible'); if (_this.options.maxMovingRows > 1) { row = row.add(thtb.find('> tr > td:nth-child(' + (i + 1) + ')').slice(0, _this.options.maxMovingRows - 1)); } @@ -333,7 +333,7 @@ this.bindTo.mousedown(function(evt) { // listen only to left mouse click if(evt.which!==1) return; - if (_this.options.beforeStart(_this.originalTable) === false) { + if (_this.options.beforeStart(_this.originalTable, evt) === false) { return; } clearTimeout(this.downTimer); diff --git a/package.json b/package.json new file mode 100644 index 0000000..c93fe80 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "dragtable", + "version": "2.0.15", + "description": "A draggable column table plugin for jquery.", + "main": "jquery.dragtable.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/akottr/dragtable.git" + }, + "author": "Andres ", + "license": "MIT GPL", + "bugs": { + "url": "https://github.com/akottr/dragtable/issues" + }, + "homepage": "http://akottr.github.io/dragtable", + "keywords": [ + "table", + "jquery", + "draggable" + ] +}