summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/Search.page18
-rw-r--r--demos/quickstart/protected/pages/Search.php7
2 files changed, 1 insertions, 24 deletions
diff --git a/demos/quickstart/protected/pages/Search.page b/demos/quickstart/protected/pages/Search.page
index d3391222..ae7f07bc 100644
--- a/demos/quickstart/protected/pages/Search.page
+++ b/demos/quickstart/protected/pages/Search.page
@@ -4,24 +4,6 @@
<com:SearchBox ID="search" />
</div>
- <com:TRepeater id="api_results">
- <prop:HeaderTemplate>
- <div class="searchHeader">
- Found <%# $this->Parent->Data->Count %> classes in API documentation.
- </div>
- </prop:HeaderTemplate>
- <prop:ItemTemplate>
- <div class="searchAPIItem">
- <div class="searchItemLink">
- <%# $this->ItemIndex + 1 %>.
- <a href="http://www.pradosoft.com/docs/manual/<%# $this->DataItem->link %>">
- <%# $this->DataItem->title %>
- </a>
- </div>
- </div>
- </prop:ItemTemplate>
- </com:TRepeater>
-
<com:TRepeater id="quickstart_results">
<prop:HeaderTemplate>
<div class="searchHeader">
diff --git a/demos/quickstart/protected/pages/Search.php b/demos/quickstart/protected/pages/Search.php
index 297d2f50..f1d07ffa 100644
--- a/demos/quickstart/protected/pages/Search.php
+++ b/demos/quickstart/protected/pages/Search.php
@@ -13,13 +13,8 @@ class Search extends TPage
$hits_1 = $quickstart->find($text);
$this->quickstart_results->setDataSource($hits_1);
$this->quickstart_results->dataBind();
-
- $api = $this->getApplication()->getModule("api_search");
- $hits_2 = $api->find($text);
- $this->api_results->setDataSource($hits_2);
- $this->api_results->dataBind();
- $this->emptyResult->setVisible(count($hits_1)+count($hits_2) == 0);
+ $this->emptyResult->setVisible(!count($hits_1));
}
}