Ticket #4878: attributes.js-r6333-patch.txt
File attributes.js-r6333-patch.txt, 417 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | 101c101,103 |
2 | < var values = jQuery.makeArray(value); |
3 | --- |
4 | > var values = jQuery.makeArray(value), |
5 | > one = this.type == "select-one", |
6 | > canSelect = true; |
7 | 104c106 |
8 | < this.selected = (jQuery.inArray( this.value, values ) >= 0 || |
9 | --- |
10 | > this.selected = canSelect && (jQuery.inArray( this.value, values ) >= 0 || |
11 | 105a108,109 |
12 | > if (this.selected && one) |
13 | > canSelect = false; |