Correctly unset the hidden input field for autocompletable-and-select-menu-settable...
[platal.git] / templates / search / adv.form.tpl
index 6f36626..3c6a5ba 100644 (file)
 
               return false;
             });
+        }).parent().find('.autocomplete').change(function() {
+          // If we change the value in the type="text" field, then the value in the 'integer id' field must not be used,
+          // to ensure that, we unset it
+          $(this).parent().find('.autocompleteTarget').val('');
         });
     });
 -->