Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | /* extending jQuery functions for custom highlighting */ |
19 | 19 | jQuery.ui.autocomplete.prototype._renderItem = function( ul, item) { |
20 | 20 | |
21 | | - var delim = this.element.context.delimiter; |
| 21 | + var delim = this.element.context.delimiter; |
22 | 22 | if ( delim == null ) { |
23 | 23 | term = this.term; |
24 | 24 | } else { |
— | — | @@ -921,11 +921,17 @@ |
922 | 922 | 'overlayOpacity' : '0.8' |
923 | 923 | }); |
924 | 924 | |
925 | | - this.find('input, select') |
| 925 | + // @TODO - this should ideally be called only for inputs that have |
| 926 | + // a dependent field - which might involve changing the storage of |
| 927 | + // "dependent fields" information from a global variable to a |
| 928 | + // per-input HTML attribute. |
| 929 | + this.find('input, select[class!="sfComboBox"]').each( function() { |
| 930 | + jQuery(this) |
926 | 931 | .setAutocompleteForDependentField( partOfMultiple ) |
927 | 932 | .blur( function() { |
928 | 933 | jQuery(this).setAutocompleteForDependentField( partOfMultiple ); |
929 | 934 | }); |
| 935 | + }); |
930 | 936 | // The 'blur' event doesn't get triggered for radio buttons for |
931 | 937 | // Chrome and Safari (the WebKit-based browsers) so use the 'change' |
932 | 938 | // event in addition. |