summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorioguix2010-07-26 08:51:46 +0000
committerioguix2010-07-26 08:51:46 +0000
commitfa087c7c55b4f569b55e9f7e8873c0e980649663 (patch)
tree7b3c4c072007f04adcf7b8518a3aed64df88cb45
parentd837ee88785e1cf4c72d8a209d49e94453fae951 (diff)
On insert page, open the auto-complete list when it gets the focus
-rw-r--r--js/ac_insert_row.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/ac_insert_row.js b/js/ac_insert_row.js
index ae062a3d..3517becb 100644
--- a/js/ac_insert_row.js
+++ b/js/ac_insert_row.js
@@ -192,7 +192,7 @@ jQuery(document).ready(function () {
/* register some global value in the ppa namespace */
jQuery.ppa = {
fklist: jQuery('#fklist'),
- attrs: jQuery('input[id^=attr_]'),
+ attrs: jQuery('input[id^=attr_]'), // select fields with FK
fkbg: jQuery('#fkbg'),
i:0, // selected value indice
o:0 // offset when navigating prev/next
@@ -209,6 +209,12 @@ jQuery(document).ready(function () {
if (e.keyCode == 13 && jQuery.ppa.fklist[0].style.display == 'block')
return false;
});
+
+ /* open the list when the field get the focus */
+ jQuery.ppa.attrs
+ .focus(function (e) {
+ openlist(this);
+ });
/* enable/disable auto-complete according to the checkbox */
triggerAc(