mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Resizable: remove unused grip code
This commit is contained in:
parent
6de1009af8
commit
24d1865df4
@ -54,7 +54,6 @@ $.extend(ts.css, {
|
|||||||
filter : 'tablesorter-filter',
|
filter : 'tablesorter-filter',
|
||||||
wrapper : 'tablesorter-wrapper', // ui theme & resizable
|
wrapper : 'tablesorter-wrapper', // ui theme & resizable
|
||||||
resizer : 'tablesorter-resizer', // resizable
|
resizer : 'tablesorter-resizer', // resizable
|
||||||
grip : 'tablesorter-resizer-grip',
|
|
||||||
sticky : 'tablesorter-stickyHeader', // stickyHeader
|
sticky : 'tablesorter-stickyHeader', // stickyHeader
|
||||||
stickyVis : 'tablesorter-sticky-visible'
|
stickyVis : 'tablesorter-sticky-visible'
|
||||||
});
|
});
|
||||||
@ -1579,13 +1578,13 @@ ts.addWidget({
|
|||||||
$columns
|
$columns
|
||||||
.each(function() {
|
.each(function() {
|
||||||
var $column = $(this),
|
var $column = $(this),
|
||||||
padding = parseInt($column.css('padding-right'), 10) + 10; // 10 is 1/2 of the 20px wide resizer grip
|
padding = parseInt($column.css('padding-right'), 10) + 10; // 10 is 1/2 of the 20px wide resizer
|
||||||
$column
|
$column
|
||||||
.find('.' + ts.css.wrapper)
|
.find('.' + ts.css.wrapper)
|
||||||
.append('<div class="' + ts.css.resizer + '" style="cursor:w-resize;position:absolute;z-index:1;right:-' +
|
.append('<div class="' + ts.css.resizer + '" style="cursor:w-resize;position:absolute;z-index:1;right:-' +
|
||||||
padding + 'px;top:0;height:100%;width:20px;"></div>');
|
padding + 'px;top:0;height:100%;width:20px;"></div>');
|
||||||
})
|
})
|
||||||
.find('.' + ts.css.resizer + ',.' + ts.css.grip)
|
.find('.' + ts.css.resizer)
|
||||||
.bind('mousedown', function(event) {
|
.bind('mousedown', function(event) {
|
||||||
// save header cell and mouse position
|
// save header cell and mouse position
|
||||||
$target = $(event.target).closest('th');
|
$target = $(event.target).closest('th');
|
||||||
@ -1629,7 +1628,7 @@ ts.addWidget({
|
|||||||
.children('tr').children()
|
.children('tr').children()
|
||||||
.unbind('mousemove.tsresize mouseup.tsresize')
|
.unbind('mousemove.tsresize mouseup.tsresize')
|
||||||
// don't remove "tablesorter-wrapper" as uitheme uses it too
|
// don't remove "tablesorter-wrapper" as uitheme uses it too
|
||||||
.find('.' + ts.css.resizer + ',.' + ts.css.grip).remove();
|
.find('.' + ts.css.resizer).remove();
|
||||||
ts.resizableReset(table);
|
ts.resizableReset(table);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user