summaryrefslogtreecommitdiff
path: root/rt/html/Search/Simple.html
diff options
context:
space:
mode:
authorivan <ivan>2008-03-02 04:11:51 +0000
committerivan <ivan>2008-03-02 04:11:51 +0000
commit8103c1fc1b2c27a6855feadf26f91b980a54bc52 (patch)
tree631dd45606c37c00d9026e14ecc3ee3700b4b51c /rt/html/Search/Simple.html
parent9c68254528b6f2c7d8c1921b452fa56064783782 (diff)
import rt 3.6.6
Diffstat (limited to 'rt/html/Search/Simple.html')
-rw-r--r--rt/html/Search/Simple.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/rt/html/Search/Simple.html b/rt/html/Search/Simple.html
index cdffc4c46..01424a3b1 100644
--- a/rt/html/Search/Simple.html
+++ b/rt/html/Search/Simple.html
@@ -51,6 +51,8 @@
Title => $title
&>
+<& /Elements/Callback, _CallbackName => 'PreForm', %ARGS &>
+
<div id="SimpleSearchForm">
<form action="Simple.html" method="get">
@@ -64,6 +66,11 @@
<div align="center">
<input name="q" size="60" /><input type="submit" class="button" value="<&|/l&>Search</&>" />
</div>
+
+</form>
+
+<& /Elements/Callback, _CallbackName => 'PostForm', %ARGS &>
+
</div>
<%INIT>
@@ -78,8 +85,15 @@ if ($q) {
if ($q =~ /^(\d+)$/) {
RT::Interface::Web::Redirect($RT::WebURL."/Ticket/Display.html?id=".$q);
}
- my $search = RT::Search::Googleish->new(Argument => $q,
- TicketsObj => $tickets);
+
+ my %args = (
+ Argument => $q,
+ TicketsObj => $tickets,
+ );
+
+ $m->comp('/Elements/Callback', %ARGS, _CallbackName => 'SearchArgs', args => \%args);
+
+ my $search = RT::Search::Googleish->new(%args);
$m->comp( "Results.html", Query => $search->QueryToSQL() );
$m->comp( "/Elements/Footer" );