Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -828,8 +828,10 @@ |
829 | 829 | delay: 0, |
830 | 830 | change: function(event, ui) { |
831 | 831 | if (!ui.item) { |
832 | | - // remove invalid value, as it didn't match anything |
833 | | - //jQuery(this).val(""); |
| 832 | + if (select.attr("existingvaluesonly") == 'true') { |
| 833 | + // remove invalid value, as it didn't match anything |
| 834 | + jQuery(this).val(""); |
| 835 | + } |
834 | 836 | return false; |
835 | 837 | } |
836 | 838 | select.val(ui.item.id); |