|
|
@ -12,7 +12,10 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
var do_css = function() { |
|
|
|
(function() { |
|
|
|
var settings = new script_settings('quick-reply'); |
|
|
|
|
|
|
|
var do_css = function() { |
|
|
|
$('#quick-reply-css').remove(); |
|
|
|
|
|
|
|
// Find background of reply posts
|
|
|
@ -116,9 +119,9 @@ var do_css = function() { |
|
|
|
}\ |
|
|
|
}\ |
|
|
|
</style>').appendTo($('head')); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
var show_quick_reply = function(){ |
|
|
|
var show_quick_reply = function(){ |
|
|
|
if($('div.banner').length == 0) |
|
|
|
return; |
|
|
|
if($('#quick-reply').length != 0) |
|
|
@ -333,6 +336,7 @@ var show_quick_reply = function(){ |
|
|
|
$(window).trigger('quick-reply'); |
|
|
|
|
|
|
|
$(window).ready(function() { |
|
|
|
if (settings.get('hide_at_top', true)) { |
|
|
|
$(window).scroll(function() { |
|
|
|
if ($(this).width() <= 800) |
|
|
|
return; |
|
|
@ -340,16 +344,21 @@ var show_quick_reply = function(){ |
|
|
|
$postForm.fadeOut(100); |
|
|
|
else |
|
|
|
$postForm.fadeIn(100); |
|
|
|
}).on('stylesheet', function() { |
|
|
|
}).scroll(); |
|
|
|
} else { |
|
|
|
$postForm.show(); |
|
|
|
} |
|
|
|
|
|
|
|
$(window).on('stylesheet', function() { |
|
|
|
do_css(); |
|
|
|
if ($('link#stylesheet').attr('href')) { |
|
|
|
$('link#stylesheet')[0].onload = do_css; |
|
|
|
} |
|
|
|
}).scroll(); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
$(window).on('cite', function(e, id, with_link) { |
|
|
|
$(window).on('cite', function(e, id, with_link) { |
|
|
|
if ($(this).width() <= 800) |
|
|
|
return; |
|
|
|
show_quick_reply(); |
|
|
@ -362,4 +371,5 @@ $(window).on('cite', function(e, id, with_link) { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
})(); |
|
|
|