Index: blueprint/scripts/submit_animated.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/blueprint/blueprint/scripts/Attic/submit_animated.js,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 submit_animated.js
--- blueprint/scripts/submit_animated.js	30 Dec 2009 21:39:53 -0000	1.1.2.1
+++ blueprint/scripts/submit_animated.js	1 Nov 2010 11:00:28 -0000
@@ -1,8 +1,5 @@
-// various JavaScript object.
-var Blueprint = {};
-
 // prevent users from clicking a submit button twice
-Blueprint.formCheck = function() {
+Drupal.behaviors.blueprint = function() {
   // only apply this to node and comment and new user registration forms
   var forms = $("#node-form>div>div>#edit-submit,#comment-form>div>#edit-submit,#user-register>div>#edit-submit");
 
@@ -10,6 +7,10 @@ Blueprint.formCheck = function() {
   $('<div id="saving"><p class="saving">Saving&hellip;</p></div>').insertAfter(forms);
 
   forms.click(function() {
+    // When the user hits enter to select the term in the autocomplete field do nothing
+    if ($('#autocomplete').each(function () { this.owner.hidePopup();}).size() != 0) {
+      return;
+    }
     $(this).siblings("input:submit").hide();
     $(this).hide();
     $("#saving").show();
@@ -22,9 +23,3 @@ Blueprint.formCheck = function() {
     setTimeout(notice, 24000);
   });
 };
-
-// Global Killswitch.
-if (Drupal.jsEnabled) {
-  $(document).ready(Blueprint.formCheck);
-}
-
