From 41a3f9be258c0ec5668e9f1b923f39e08a9caca2 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 10:29:35 +1000 Subject: bugfix and work with other stylesheets --- js/quick-reply.js | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'js') diff --git a/js/quick-reply.js b/js/quick-reply.js index db0903f7..a35047aa 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -11,19 +11,21 @@ * */ -var show_quick_reply = function(){ - if($('div.banner').length == 0) - return; - if($('#quick-reply').length != 0) - return; - - $('').appendTo($('head')); + console.log('h'); +}; + +var show_quick_reply = function(){ + if($('div.banner').length == 0) + return; + if($('#quick-reply').length != 0) + return; + + do_css(); + var $postForm = $('form[name="post"]').clone(); $postForm.clone(); @@ -193,7 +206,7 @@ var show_quick_reply = function(){ $postForm.fadeOut(100); else $postForm.fadeIn(100); - }); + }).on('stylesheet', do_css); }; $(window).on('cite', function(e, id, with_link) { -- cgit v1.3