mirror of https://github.com/tomgi/git_stats.git
firing load event on tab change
This commit is contained in:
parent
56bfb8582e
commit
0484ec844c
|
@ -17,8 +17,14 @@
|
|||
$('.tabbable ul a').click(function (e) {
|
||||
e.preventDefault();
|
||||
$(this).tab('show');
|
||||
var ev = document.createEvent('Event');
|
||||
ev.initEvent('load', true, true);
|
||||
window.dispatchEvent(ev);
|
||||
});
|
||||
$('.modal').on('shown', function (e) {
|
||||
var ev = document.createEvent('Event');
|
||||
ev.initEvent('load', true, true);
|
||||
window.dispatchEvent(ev);
|
||||
});
|
||||
});
|
||||
%body
|
||||
|
|
Loading…
Reference in New Issue