[wp-trac] [WordPress Trac] #22520: Toolbar JS with jQuery doesn't match non-jQuery behavior with hashes (e.g. read more link)

WordPress Trac noreply at wordpress.org
Tue Nov 20 19:09:40 UTC 2012


#22520: Toolbar JS with jQuery doesn't match non-jQuery behavior with hashes (e.g.
read more link)
-----------------------------+--------------------------
 Reporter:  helenyhou        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Toolbar
  Version:  3.3              |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+--------------------------
 In `/wp-includes/js/admin-bar.js`, we have a block that uses jQuery if
 available and then falls back to another block of plain JS if not. The JS
 version does the following to help prevent the toolbar from covering up
 content when a hash is present in the URL (`w = window`):

 {{{
 if ( w.location.hash )
         w.scrollBy(0,-32);
 }}}

 The jQuery version does not seem to do the same, but it should. Patch is
 forthcoming.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22520>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list