fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-03-05 09:37 am

[dw-free] (jquery beta) bottom arrow doesn't jump you to the top of the cut tag when used to close t

[commit: http://hg.dwscoalition.org/dw-free/rev/d13c71f8f75e]

http://bugs.dwscoalition.org/show_bug.cgi?id=4293

Make the bottom arrow jump you to the top of the cut tag (some animation).

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/jquery.cuttag-ajax.js
--------------------------------------------------------------------------------
diff -r 4f864f6cd717 -r d13c71f8f75e htdocs/js/jquery.cuttag-ajax.js
--- a/htdocs/js/jquery.cuttag-ajax.js	Mon Mar 05 17:36:23 2012 +0800
+++ b/htdocs/js/jquery.cuttag-ajax.js	Mon Mar 05 17:38:27 2012 +0800
@@ -141,6 +141,7 @@
             a.click(function(e) {
                 e.stopPropagation();
                 e.preventDefault();
+                $("html,body").animate({scrollTop: self.element.offset().top - 10});
                 self.toggle();
             });
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org