@@ -987,12 +987,9 @@ $.extend( ColReorder.prototype, {
987
987
/* are we on the col border (if so, resize col) */
988
988
if ( Math . abs ( e . pageX - Math . round ( offset . left + nLength ) ) <= 5 )
989
989
{
990
- if ( ! aoColumns [ i ] . bSortable === false || bSort === false )
991
- {
992
- $ ( nThTarget ) . css ( { 'cursor' : 'col-resize' } ) ;
993
- $ ( nThTarget ) . removeClass ( tableHeaderClassname ) ;
994
- $ ( nThTarget ) . addClass ( tableHeaderHoverClassname ) ;
995
- }
990
+ $ ( nThTarget ) . css ( { 'cursor' : 'col-resize' } ) ;
991
+ $ ( nThTarget ) . removeClass ( tableHeaderClassname ) ;
992
+ $ ( nThTarget ) . addClass ( tableHeaderHoverClassname ) ;
996
993
}
997
994
else {
998
995
$ ( nThTarget ) . css ( { 'cursor' : 'pointer' } ) ;
@@ -1056,6 +1053,7 @@ $.extend( ColReorder.prototype, {
1056
1053
this . s . mouse . nextStartWidth = $ ( nThNext ) . width ( ) ;
1057
1054
that . dom . resize = true ;
1058
1055
// Disable column sorting in order to avoid issues when finishing column resizing.
1056
+ aoColumns [ i ] . CRbSortableCache = aoColumns [ i ] . bSortable ;
1059
1057
aoColumns [ i ] . bSortable = false ;
1060
1058
// Disable Autowidth feature (now the user is in charge of setting column width so keeping this enabled looses changes after operations).
1061
1059
this . s . dt . oFeatures . bAutoWidth = false ;
@@ -1339,7 +1337,7 @@ $.extend( ColReorder.prototype, {
1339
1337
var scrollXEnabled ;
1340
1338
1341
1339
//Re-enable column sorting
1342
- this . s . dt . aoColumns [ colResized ] . bSortable = true ;
1340
+ this . s . dt . aoColumns [ colResized ] . bSortable = this . s . dt . aoColumns [ colResized ] . CRbSortableCache ;
1343
1341
1344
1342
//Save the new resized column's width
1345
1343
this . s . dt . aoColumns [ colResized ] . sWidth = $ ( this . s . mouse . resizeElem ) . width ( ) + "px" ;
0 commit comments