Browse Source

wait for stylesheet to load?

pull/40/head
Michael Foster 11 years ago
parent
commit
8dd1a3e3e8
  1. 9
      js/quick-reply.js

9
js/quick-reply.js

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

Loading…
Cancel
Save