Merge "Avoid :checkbox Sizzle selector"
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / ui / FormWrapperWidget.js
index 7d69fb6..5d6eaef 100644 (file)
@@ -71,7 +71,7 @@ FormWrapperWidget.prototype.onFormSubmit = function ( e ) {
        $( e.target ).find( 'input:not([type="hidden"],[type="submit"]), select' ).each( function () {
                var value = '';
 
-               if ( !$( this ).is( ':checkbox' ) || $( this ).is( ':checked' ) ) {
+               if ( !$( this ).is( '[type="checkbox"]' ) || $( this ).is( ':checked' ) ) {
                        value = $( this ).val();
                }