firing load event on tab change

This commit is contained in:
Tomasz Gieniusz 2012-10-21 20:26:40 +02:00
parent 56bfb8582e
commit 0484ec844c
1 changed files with 6 additions and 0 deletions

View File

@ -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