diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 08:08:44 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 08:08:44 +1000 |
| commit | 260908025c6f0dc751f90a86cc6714fc6f34b5ca (patch) | |
| tree | 9ae0affcd8041a30e72bfe143f836439b6a6c8a9 | |
| parent | 59aa89a84b730e920fd6ff62e9c32c6b57aadbed (diff) | |
dont show quick reply on tiny screens lol
| -rw-r--r-- | js/quick-reply.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js index ac125b0c..a5371587 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -67,6 +67,11 @@ var show_quick_reply = function(){ #quick-reply td.submit {\ width: 1%;\ }\ + @media screen and (max-width: 800px) {\ + #quick-reply {\ + display: none !important;\ + }\ + }\ </style>').appendTo($('head')); var $postForm = $('form[name="post"]').clone(); @@ -157,6 +162,8 @@ var show_quick_reply = function(){ $origPostForm = $('form[name="post"]'); $(window).scroll(function() { + if ($(this).width() <= 800) + return; if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100) $postForm.fadeOut(100); else @@ -165,10 +172,11 @@ var show_quick_reply = function(){ }; $(window).on('cite', function(e, id, with_link) { + if ($(this).width() <= 800) + return; show_quick_reply(); $('#quick-reply textarea').focus(); if (with_link) { - console.log(id, with_link); setTimeout(function() { highlightReply(id); $(window).scrollTop($('#' + id).offset().top); |
