[wp-trac] [WordPress Trac] #28581: Theme browser sidebar expand/collapse only works on every other theme

WordPress Trac noreply at wordpress.org
Thu Jun 19 01:26:14 UTC 2014


#28581: Theme browser sidebar expand/collapse only works on every other theme
--------------------------+-------------------------
 Reporter:  helen         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+-------------------------

Comment (by SergeyBiryukov):

 After adding `console.log()` to [source:tags/3.9.1/src/wp-
 admin/js/theme.js#L793 themes.view.Preview.collapse()], I've noticed that
 it runs multiple times in a row, and that number increases each time I
 click Next: 2, 6, 12, 20, 30, etc.

 The same applies to [source:tags/3.9.1/src/wp-admin/js/theme.js#L746 other
 callbacks], probably because [source:tags/3.9.1/src/wp-
 admin/js/theme.js#L492 a new view is constructed] each time you click Next
 or Previous. I'm not familiar enough with the code to fix it though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28581#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list