Ticket #25912: common.eqeqeq.diff
| File common.eqeqeq.diff, 1.2 KB (added by , 13 years ago) |
|---|
-
src/wp-admin/js/common.js
70 70 $(document).ready(function(){columns.init();}); 71 71 72 72 validateForm = function( form ) { 73 return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() == ''; } ).addClass( 'form-invalid' ).find('input:visible').change( function() { $(this).closest('.form-invalid').removeClass( 'form-invalid' ); } ).size();73 return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() === ''; } ).addClass( 'form-invalid' ).find('input:visible').change( function() { $(this).closest('.form-invalid').removeClass( 'form-invalid' ); } ).size(); 74 74 } 75 75 76 76 // stub for doing better warnings … … 300 300 // toggle "check all" checkboxes 301 301 var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible').not(':checked'); 302 302 $(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() { 303 return ( 0 == unchecked.length );303 return ( 0 === unchecked.length ); 304 304 }); 305 305 306 306 return true;