/[webpac2]/Webpacus/lib/Webpacus/Controller/Search.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/lib/Webpacus/Controller/Search.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 282 by dpavlin, Sat Dec 17 03:20:19 2005 UTC revision 283 by dpavlin, Sat Dec 17 23:41:10 2005 UTC
# Line 102  sub results : Local { Line 102  sub results : Local {
102    
103          my $params = $c->req->params;          my $params = $c->req->params;
104    
105          # oh, client didn't have ability to setup AJAX, fallback to          # do full-page refresh for clients without JavaScript
106          # page refresh          $c->stash->{results} = $c->subreq('/search/results/ajax', {}, $params);
107          if (! $params->{'_ajax'}) {          $c->stash->{template} = 'search.tt';
                 $params->{_ajax} = 1;  
                 $c->stash->{results} = $c->subreq('/search/results/ajax', {}, $params);  
         $c->stash->{template} = 'search.tt';  
         } else {  
                 $c->forward('/search/results/ajax');  
         $c->stash->{template} = 'results.tt';  
         }  
108  }  }
109    
110    

Legend:
Removed from v.282  
changed lines
  Added in v.283

  ViewVC Help
Powered by ViewVC 1.1.26