diff options
author | lpsolit%gmail.com <> | 2005-08-22 03:16:40 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-22 03:16:40 +0200 |
commit | f4966aeb0e7a655c986aeb285c1a220274ddbfd9 (patch) | |
tree | 70fc81865b58b54e97da10c8cc824ae9fb641672 /template/en/default/sidebar.xul.tmpl | |
parent | d055246d2010e546bbad8c65d99496d53eee0bff (diff) | |
download | bugzilla-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/sidebar.xul.tmpl')
-rw-r--r-- | template/en/default/sidebar.xul.tmpl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl index b04aa08dc..31f0a2c6b 100644 --- a/template/en/default/sidebar.xul.tmpl +++ b/template/en/default/sidebar.xul.tmpl @@ -34,14 +34,8 @@ orient="vertical" onload="document.getElementById('query-field').addEventListener('keypress', initial_keypress_handler, true)"> -<!-- Load QuickSearch libraries --> -<script type="application/x-javascript" src="localconfig.js"/> -<script type="application/x-javascript" src="quicksearch.js"/> <script type="application/x-javascript"><![CDATA[ -// Tell QuickSearch that the source of this is the sidebar -var sidebar = 1; - function load_absolute_url( aAbsoluteURL ) { content.location = aAbsoluteURL; } @@ -59,7 +53,7 @@ function initial_keypress_handler( aEvent ) { function normal_keypress_handler( aEvent ) { if ( aEvent.keyCode == 13 ) - QuickSearch(this.value); + load_relative_url('buglist.cgi?quicksearch=' + this.value); } ]]></script> |