summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-08 22:04:00 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-08 22:04:00 +0000
commit3e0e530cae34bd8d5c9bb45a78923a9bfbc256ca (patch)
tree72e73ce5e02e462835e198f84885b3e856e87855 /share/www
parent539a418b1d7bfbffdcb377a7a9a43fd1a3753b6a (diff)
Make the autocomplete in Futon a bit more robust, especially in Safari.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@732844 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/replicator.html1
-rw-r--r--share/www/script/jquery.suggest.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/share/www/replicator.html b/share/www/replicator.html
index 32ad52cd..e5442a02 100644
--- a/share/www/replicator.html
+++ b/share/www/replicator.html
@@ -42,7 +42,6 @@ specific language governing permissions and limitations under the License.
});
});
-
$.couch.allDbs({
success: function(dbs) {
$("fieldset select").each(function() {
diff --git a/share/www/script/jquery.suggest.js b/share/www/script/jquery.suggest.js
index 4bb8b2d0..bc0dfbf8 100644
--- a/share/www/script/jquery.suggest.js
+++ b/share/www/script/jquery.suggest.js
@@ -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 ||