couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r732844 - in /couchdb/trunk/share/www: replicator.html script/jquery.suggest.js
Date Thu, 08 Jan 2009 22:04:00 GMT
Author: cmlenz
Date: Thu Jan  8 14:04:00 2009
New Revision: 732844

URL: http://svn.apache.org/viewvc?rev=732844&view=rev
Log:
Make the autocomplete in Futon a bit more robust, especially in Safari.

Modified:
    couchdb/trunk/share/www/replicator.html
    couchdb/trunk/share/www/script/jquery.suggest.js

Modified: couchdb/trunk/share/www/replicator.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/replicator.html?rev=732844&r1=732843&r2=732844&view=diff
==============================================================================
--- couchdb/trunk/share/www/replicator.html [utf-8] (original)
+++ couchdb/trunk/share/www/replicator.html [utf-8] Thu Jan  8 14:04:00 2009
@@ -42,7 +42,6 @@
           });
         });
 
-        
         $.couch.allDbs({
           success: function(dbs) {
             $("fieldset select").each(function() {

Modified: couchdb/trunk/share/www/script/jquery.suggest.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.suggest.js?rev=732844&r1=732843&r2=732844&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] Thu Jan  8 14:04:00 2009
@@ -27,9 +27,13 @@
 
     input
       .blur(function() {
+        if (timer) clearTimeout(timer);
         setTimeout(function() { dropdown.hide() }, 200);
       })
       .keydown(function(e) {
+        if ($.inArray(e.keyCode, [16, 17, 18, 20, 144, 91, 93, 224]) != -1) {
+          return; // ignore modifier keys
+        }
         if (timer) clearTimeout(timer);
         if ($.inArray(e.keyCode, [38, 40]) != -1 ||
             (dropdown.is(":visible") && (e.keyCode == 27 ||



Mime
View raw message