Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkorelstar <korelstar@users.noreply.github.com>2018-07-09 23:18:19 +0300
committerkorelstar <korelstar@users.noreply.github.com>2018-07-29 23:59:35 +0300
commitdd41c4c0003eb565999e329ee7b91c9d4a2695e6 (patch)
tree12f52dbb8ac36b9d18fb33813d107e71a2ef8503 /templates
parent2c0cb905062f5231e96b638a4cd7ceae946672da (diff)
use new search API for Nextcloud >= 14
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php
index 94311a00..79407f14 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -26,7 +26,7 @@ style('notes', [
?>
<div id="app" ng-app="Notes" ng-controller="AppController"
- ng-init="init('<?= $_['lastViewedNote'] ?>','<?= $_['errorMessage'] ?>')" ng-cloak>
+ ng-init="init('<?= $_['lastViewedNote'] ?>','<?= $_['errorMessage'] ?>', <?= $_['useSearchAPI'] ?>)" ng-cloak>
<script type="text/ng-template" id="note.html">
<?php print_unescaped($this->inc('note')); ?>
@@ -34,11 +34,13 @@ style('notes', [
<div id="app-navigation" ng-controller="NotesController">
<ul>
+<?php if(!$_['useSearchAPI']) { ?>
<li class="note-search">
<span class="nav-entry icon-search">
<input type="text" ng-model="search" />
</span>
</li>
+<?php } ?>
<!-- new note button -->
<div id="note-add">
<button class="icon-add app-content-list-button ng-binding" id="new-note-button" type="button" name="button" ng-click="create()"