Reorder: add style to head

This commit is contained in:
Rob Garrison 2016-12-15 06:29:21 -06:00
parent 8c07fe24bc
commit c0628be0a5

View File

@ -56,7 +56,7 @@ $.tablesorter.addWidget({
top: r.top - clickOffset[1], top: r.top - clickOffset[1],
width: $th.outerWidth() width: $th.outerWidth()
}) })
.appendTo('body') .appendTo('head')
.find('th, td').addClass(wo.reorder_helperClass); .find('th, td').addClass(wo.reorder_helperClass);
$bar = $('<div class="' + wo.reorder_helperBar + '" />') $bar = $('<div class="' + wo.reorder_helperBar + '" />')
.css({ .css({
@ -64,7 +64,7 @@ $.tablesorter.addWidget({
top : c.$table.find('thead').offset().top, top : c.$table.find('thead').offset().top,
height : $th.closest('thead').outerHeight() + c.$table.find('tbody').height() height : $th.closest('thead').outerHeight() + c.$table.find('tbody').height()
}) })
.appendTo('body'); .appendTo('head');
positionBar(e); positionBar(e);
lastIndx = endIndex; lastIndx = endIndex;
}, },
@ -179,4 +179,4 @@ $.tablesorter.addWidget({
// add mouse coordinates // add mouse coordinates
$x = $('#main h1:last'); $(document).mousemove(function(e){ $x.html( e.pageX ); }); $x = $('#main h1:last'); $(document).mousemove(function(e){ $x.html( e.pageX ); });
})(jQuery); })(jQuery);