Update quick-reply.js

apparently 600 was still not allowing QR to load on portrait mode. 400 seems to work fine
This commit is contained in:
Anonish 2015-02-06 20:42:13 -06:00 committed by czaks
parent c74fc6cefb
commit d3d54b8c76

View File

@ -116,7 +116,7 @@
#quick-reply td.recaptcha-response {\ #quick-reply td.recaptcha-response {\
padding: 0 0 1px 0;\ padding: 0 0 1px 0;\
}\ }\
@media screen and (max-width: 600px) {\ @media screen and (max-width: 400px) {\
#quick-reply {\ #quick-reply {\
display: none !important;\ display: none !important;\
}\ }\
@ -364,7 +364,7 @@
$(window).ready(function() { $(window).ready(function() {
if (settings.get('hide_at_top', true)) { if (settings.get('hide_at_top', true)) {
$(window).scroll(function() { $(window).scroll(function() {
if ($(this).width() <= 600) if ($(this).width() <= 400)
return; return;
if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100) if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100)
$postForm.fadeOut(100); $postForm.fadeOut(100);
@ -385,7 +385,7 @@
}; };
$(window).on('cite', function(e, id, with_link) { $(window).on('cite', function(e, id, with_link) {
if ($(this).width() <= 600) if ($(this).width() <= 400)
return; return;
show_quick_reply(); show_quick_reply();
if (with_link) { if (with_link) {
@ -440,7 +440,7 @@
$('.quick-reply-btn').hide(); $('.quick-reply-btn').hide();
$(window).scroll(function() { $(window).scroll(function() {
if ($(this).width() <= 600) if ($(this).width() <= 400)
return; return;
if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100) if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100)
$('.quick-reply-btn').fadeOut(100); $('.quick-reply-btn').fadeOut(100);