Ticket #17910: 17910.patch
File 17910.patch, 914 bytes (added by , 14 years ago) |
---|
-
wp-admin/js/user-profile.dev.js
50 50 51 51 $('option', select).remove(); 52 52 $.each(inputs, function( id, value ) { 53 var selected;53 var option, val = value.replace(/<\/?[a-z][^>]?>/gi, ''); 54 54 55 if ( inputs[id].length && $.inArray( value, dub ) == -1 ) { 56 dub.push(value); 57 selected = id == current ? 'selected="selected"' : ''; 58 select.append('<option id="' + id + '" ' + selected + '">' + value + '</option>'); 55 if ( inputs[id].length && $.inArray( val, dub ) == -1 ) { 56 dub.push(val); 57 option = $('<option />'); 58 option.attr('id', id); 59 60 if ( id == current ) 61 option.prop('selected', true); 62 63 select.append( option.text(val) ); 59 64 } 60 65 }); 61 66 });