<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 18:03:31 +0000</lastBuildDate>
    <item>
      <title>(jQuery) Drupal Autocomplete Auto Submit - unravelme1</title>
      <link>https://snipplr.com/view/31115/drupal-autocomplete-auto-submit</link>
      <description>&lt;p&gt;This overrides a couple core Drupal functions in the autocomplete.js file. It changes the behavior of the autocomplete such that if a user selects an item from the autocomplete menu, it takes them directly to that node instead of just populating the search field.&#13;
&#13;
Please note that this implementation is not totally bulletproof; as you can see, there is a little bit of jank happening in Drupal.jsAC.prototype.select to check if the item is numeric. This is because I had to pull the nid from the input field, not from the jQuery object as desired. If anyone has a solution for this, please leave a comment.&lt;/p&gt;</description>
      <pubDate>Thu, 08 Apr 2010 14:25:37 UTC</pubDate>
      <guid>https://snipplr.com/view/31115/drupal-autocomplete-auto-submit</guid>
    </item>
  </channel>
</rss>
