w/extensions/FlaggedRevs/frontend/modules/ext.flaggedRevs.review.js
/*
	 * Update <select> color for the selected item/option
	 */
Update  color for the selected item/option
Update color for the selected item / option
function updateReviewFormColors( form ) {
		var tag, select, selectedlevel, value;
		for ( tag in wgFlaggedRevsParams.tags ) { 
			select = form.find( '[name="wp' + tag + '"]' ).eq( 0 );
			if ( select.length && select.prop( 'nodeName' ) === 'SELECT' ) {
				selectedlevel = select.prop( 'selectedIndex' );
				value = select.children( 'option' ).eq( selectedlevel ).val();
				select.prop( 'className', 'fr-rating-option-' + value );
				select.prop( 'selectedIndex', null );
				select.prop( 'selectedIndex', selectedlevel );
			}
		}
	}
function updateReviewFormColors ( form ) { var tag , select , selectedlevel , value ; for ( tag in wgFlaggedRevsParams . tags ) { select = form . find ( '[name="wp' + tag + '"]' ) . eq ( 0 ) ; if ( select . length && select . prop ( 'nodeName' ) === 'SELECT' ) { selectedlevel = select . prop ( 'selectedIndex' ) ; value = select . children ( 'option' ) . eq ( selectedlevel ) . val ( ) ; select . prop ( 'className' , 'fr-rating-option-' + value ) ; select . prop ( 'selectedIndex' , null ) ; select . prop ( 'selectedIndex' , selectedlevel ) ; } } }
Update <select> color for the selected item/option
Update <select > color for the selected item / option
// for each tag // Look for a selector for this tag // Fix FF one-time jitter bug of changing an <option>