[Koha-patches] [PATCH] Fix for Bug 2018 ("Incorrect focus")
Owen Leonard
oleonard at myacpl.org
Tue Apr 22 16:54:38 CEST 2008
---
.../prog/en/modules/catalogue/advsearch.tmpl | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
index 921c3b1..1d07a46 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
@@ -13,6 +13,9 @@
dad.appendChild(line.cloneNode(true));
line.removeChild(ButtonPlus);
}
+ $(document).ready(function() {
+ $("input[@name='q']:eq(0)").focus();
+ });
</script>
</head>
<body>
@@ -64,7 +67,7 @@
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="search_indexes.inc" -->
- <input type="text" size="30" name="q" title="Enter search terms" value="" class="focus" />
+ <input type="text" size="30" name="q" title="Enter search terms" value="" />
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="add_field" -->
<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
--
1.5.2.1
More information about the Koha-patches
mailing list