1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

wait for stylesheet to load?

This commit is contained in:
Michael Foster 2013-09-15 10:42:50 +10:00
parent 41a3f9be25
commit 8dd1a3e3e8

View File

@ -85,8 +85,6 @@ var do_css = function() {
}\
}\
</style>').appendTo($('head'));
console.log('h');
};
var show_quick_reply = function(){
@ -206,7 +204,12 @@ var show_quick_reply = function(){
$postForm.fadeOut(100);
else
$postForm.fadeIn(100);
}).on('stylesheet', do_css);
}).on('stylesheet', function() {
do_css();
if ($('link#stylesheet').attr('href')) {
$('link#stylesheet')[0].onload = do_css;
}
});
};
$(window).on('cite', function(e, id, with_link) {