[wp-trac] [WordPress Trac] #26060: Add and utilize :nth-child() selectors rather than the .alt(ernate) classes

WordPress Trac noreply at wordpress.org
Tue Mar 10 19:53:54 UTC 2015


#26060: Add and utilize :nth-child() selectors rather than the .alt(ernate) classes
-------------------------+---------------------------------
 Reporter:  helen        |       Owner:  helen
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.2
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, administration
-------------------------+---------------------------------
Changes (by Chouby):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @helen
 Since you invited to re-open, I will.

 in inline-edit-post.js around line 136, you changed
 {{{$(t.what+id).hide().after(editRow);}}}
 to
 {{{$(t.what+id).hide().before(editRow).before('<tr
 class="hidden"></tr>');}}}

 Is there a particular reason to change from "after" to "before"?

 In a plugin, I rely on the fact that the quick edit is inserted after. Of
 course I could adapt my plugin. But maybe I am not the only one. Would the
 following be ok for you?
 {{{$(t.what+id).hide().after('<tr
 class="hidden"></tr>').after(editRow);}}}

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


More information about the wp-trac mailing list