Author: david
Date: Mon Oct 17 15:11:01 2011
New Revision: 10123
Log:
Add print-preview stylesheet
Modified:
trunk/apps/qubit/modules/search/actions/indexAction.class.php
Modified: trunk/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/indexAction.class.php Mon Oct
17 14:24:50 2011 (r10122)
+++ trunk/apps/qubit/modules/search/actions/indexAction.class.php Mon Oct
17 15:11:01 2011 (r10123)
@@ -21,6 +21,11 @@
{
public function execute($request)
{
+ if ('print' == $request->getGetParameter('media'))
+ {
+ $this->getResponse()->addStylesheet('print-preview', 'last');
+ }
+
if (!isset($request->limit))
{
$request->limit = sfConfig::get('app_hits_per_page');
@@ -53,7 +58,6 @@
$this->pager->hits = $hits;
$this->pager->setMaxPerPage($request->limit);
$this->pager->setPage($request->page);
-
}
else if (empty($this->error))
{
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.