修复BUG,微缩版toolbar应该在BootstrapTable设置好后再设置,防止停留在原地不动
This commit is contained in:
parent
5f4e12c7fa
commit
71b7fde64c
|
@ -158,6 +158,11 @@
|
||||||
clickToSelect: false,
|
clickToSelect: false,
|
||||||
}, options);
|
}, options);
|
||||||
$(this).bootstrapTable(settings);
|
$(this).bootstrapTable(settings);
|
||||||
|
$('.toolbar').insertBefore($('.bootstrap-table > .fixed-table-toolbar > .bs-bars'));
|
||||||
|
$('.toolbar a').click(function () {
|
||||||
|
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
|
||||||
|
ctl.trigger("click");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
|
@ -71,12 +71,4 @@ $(function () {
|
||||||
//$("html").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000', scrollspeed: 100, mousescrollstep: 60});
|
//$("html").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000', scrollspeed: 100, mousescrollstep: 60});
|
||||||
|
|
||||||
//$(".table-responsive").niceScroll({ styler: "fb", cursorcolor: "#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', zindex: '1000', horizrailenabled: true });
|
//$(".table-responsive").niceScroll({ styler: "fb", cursorcolor: "#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', zindex: '1000', horizrailenabled: true });
|
||||||
|
|
||||||
|
|
||||||
$('.toolbar').insertBefore($('.bootstrap-table > .fixed-table-toolbar > .bs-bars'));
|
|
||||||
|
|
||||||
$('.toolbar a').click(function () {
|
|
||||||
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
|
|
||||||
ctl.trigger("click");
|
|
||||||
});
|
|
||||||
})(jQuery);
|
})(jQuery);
|
Loading…
Reference in New Issue