mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
uitheme: add inner wrapper to columns missing it
This commit is contained in:
parent
9845a692e2
commit
17c30f1710
@ -240,10 +240,13 @@ ts.addWidget({
|
||||
$(this)[ event.type === 'mouseenter' ? 'addClass' : 'removeClass' ](themes.hover || '');
|
||||
});
|
||||
|
||||
if (!$headers.find('.' + ts.css.wrapper).length) {
|
||||
$headers.each(function(){
|
||||
var $this = $(this);
|
||||
if (!$this.find('.' + ts.css.wrapper).length) {
|
||||
// Firefox needs this inner div to position the icon & resizer correctly
|
||||
$headers.wrapInner('<div class="' + ts.css.wrapper + '" style="position:relative;height:100%;width:100%"></div>');
|
||||
$this.wrapInner('<div class="' + ts.css.wrapper + '" style="position:relative;height:100%;width:100%"></div>');
|
||||
}
|
||||
});
|
||||
if (c.cssIcon) {
|
||||
// if c.cssIcon is '', then no <i> is added to the header
|
||||
$headers
|
||||
|
Loading…
Reference in New Issue
Block a user