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

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/navigate.js')
-rw-r--r--js/navigate.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/js/navigate.js b/js/navigate.js
index 428dd97..e16287a 100644
--- a/js/navigate.js
+++ b/js/navigate.js
@@ -27,7 +27,7 @@
/** global: OCA */
/** global: _ */
-const fullTextSearch = OCA.FullTextSearch.api;
+var fullTextSearch = OCA.FullTextSearch.api;
var elements = {
@@ -38,7 +38,7 @@ var elements = {
search_json: null
};
-const Navigate = function () {
+var Navigate = function () {
this.init();
};
@@ -209,7 +209,7 @@ Navigate.prototype = {
initSearch: function () {
var search = elements.search_input.val();
- if (search.length < 3) {
+ if (search.length < 1) {
return false;
}
@@ -261,6 +261,11 @@ Navigate.prototype = {
},
+ onError: function (message) {
+ console.log('!' + message);
+ },
+
+
onEntryGenerated: function (entry) {
this.deleteEmptyDiv(entry, '#line1');
this.deleteEmptyDiv(entry, '#line2');