summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-22 03:16:40 +0200
committerlpsolit%gmail.com <>2005-08-22 03:16:40 +0200
commitf4966aeb0e7a655c986aeb285c1a220274ddbfd9 (patch)
tree70fc81865b58b54e97da10c8cc824ae9fb641672 /template/en/default/index.html.tmpl
parentd055246d2010e546bbad8c65d99496d53eee0bff (diff)
downloadbugzilla-f4966aeb0e7a655c986aeb285c1a220274ddbfd9.tar.gz
bugzilla-f4966aeb0e7a655c986aeb285c1a220274ddbfd9.tar.xz
Bug 70907: QuickSearch: port the JS code to perl (make it server-side) - Patch by Marc Schumann <wurblzap@gmail.com> r=wicked a=myk
Diffstat (limited to 'template/en/default/index.html.tmpl')
-rw-r--r--template/en/default/index.html.tmpl31
1 files changed, 13 insertions, 18 deletions
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl
index eb1cbbd58..a19334c30 100644
--- a/template/en/default/index.html.tmpl
+++ b/template/en/default/index.html.tmpl
@@ -28,11 +28,12 @@
[% PROCESS global/variables.none.tmpl %]
-[% title = BLOCK %]
-[% terms.Bugzilla %] Main Page
-[% END %]
-[% style_urls = [ "skins/standard/index.css" ] %]
-[% PROCESS global/header.html.tmpl %]
+
+[% PROCESS global/header.html.tmpl
+ title = "$terms.Bugzilla Main Page"
+ style_urls = [ 'skins/standard/index.css' ]
+ onload = 'document.forms[\'f\'].quicksearch.focus();'
+%]
<script type="text/javascript">
@@ -84,25 +85,19 @@ function addSidebar() {
</ul>
- <form id="show-bug" name="f" action="show_bug.cgi" method="get"
- onsubmit="QuickSearch(f.id.value); return false;">
+ <form id="show-bug" name="f" action="buglist.cgi" method="get"
+ onsubmit="if (this.quicksearch.value == '')
+ { alert('Please enter one or more search terms first.');
+ return false; } return true;">
<div>
<p>Enter [% terms.abug %] # or some search terms:</p>
- <input id="text" type="text" name="id">
- <input id="show" type="submit" value="Show">
- <a href="quicksearch.html">[Help]</a>
+ <input id="quicksearch" type="text" name="quicksearch">
+ <input id="find" type="submit" value="Find">
+ <a href="page.cgi?id=quicksearch.html">[Help]</a>
</div>
</form>
<div class="outro"></div>
</div>
-<script type="text/javascript" src="localconfig.js"></script>
-<script type="text/javascript" src="quicksearch.js"></script>
-<script type="text/javascript">
-<!--
-document.forms['f'].id.focus();
-//-->
-</script>
-
[% PROCESS global/footer.html.tmpl %]