Skip to main content

Bug Tracker

Side navigation

Ticket #4878: attributes.js-r6333-patch.txt


File attributes.js-r6333-patch.txt, 0.4 KB (added by bennettmcelwee, July 10, 2009 10:57AM UTC)

Patch for attributes.js rev 6333

101c101,103
< 				var values = jQuery.makeArray(value);
---
> 				var values = jQuery.makeArray(value),
> 					one = this.type == "select-one",
> 					canSelect = true;
104c106
< 					this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
---
> 					this.selected = canSelect && (jQuery.inArray( this.value, values ) >= 0 ||
105a108,109
> 					if (this.selected && one)
> 						canSelect = false;

Download in other formats:

Original Format