[wp-trac] [WordPress Trac] #23954: Checkbox value is not updated correctly inside media-views.js

WordPress Trac noreply at wordpress.org
Fri Apr 5 23:41:32 UTC 2013


#23954: Checkbox value is not updated correctly inside media-views.js
----------------------------+------------------------------
 Reporter:  NumberKruncher  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Media           |     Version:  3.5.1
 Severity:  major           |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------------------

Comment (by NumberKruncher):

 A better solution might be to use the following:

 {{{
 $setting.attr( 'checked', !!value && value !== 'false' );
 }}}

 Just in case the double-bang was used for a browser compatibility issue or
 such.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23954#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list