You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2020/08/03 09:24:17 UTC

[cayenne-website] branch asf-site updated: Fix JavaDoc search

This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new eab30a9  Fix JavaDoc search
eab30a9 is described below

commit eab30a98c2dc85da28f07d4bd9e418f37bc7d6ef
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Mon Aug 3 12:22:39 2020 +0300

    Fix JavaDoc search
---
 docs/4.1/api/search.js | 20 +-------------------
 docs/4.2/api/search.js | 20 +-------------------
 2 files changed, 2 insertions(+), 38 deletions(-)

diff --git a/docs/4.1/api/search.js b/docs/4.1/api/search.js
index 99d55da..3bc0550 100644
--- a/docs/4.1/api/search.js
+++ b/docs/4.1/api/search.js
@@ -41,25 +41,7 @@ function getHighlightedText(item) {
     return label;
 }
 function getURLPrefix(ui) {
-    var urlPrefix="";
-    if (useModuleDirectories) {
-        var slash = "/";
-        if (ui.item.category === catModules) {
-            return ui.item.l + slash;
-        } else if (ui.item.category === catPackages && ui.item.m) {
-            return ui.item.m + slash;
-        } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {
-            $.each(packageSearchIndex, function(index, item) {
-                if (ui.item.p == item.l) {
-                    urlPrefix = item.m + slash;
-                }
-            });
-            return urlPrefix;
-        } else {
-            return urlPrefix;
-        }
-    }
-    return urlPrefix;
+    return "";
 }
 var watermark = 'Search';
 $(function() {
diff --git a/docs/4.2/api/search.js b/docs/4.2/api/search.js
index 99d55da..3bc0550 100644
--- a/docs/4.2/api/search.js
+++ b/docs/4.2/api/search.js
@@ -41,25 +41,7 @@ function getHighlightedText(item) {
     return label;
 }
 function getURLPrefix(ui) {
-    var urlPrefix="";
-    if (useModuleDirectories) {
-        var slash = "/";
-        if (ui.item.category === catModules) {
-            return ui.item.l + slash;
-        } else if (ui.item.category === catPackages && ui.item.m) {
-            return ui.item.m + slash;
-        } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {
-            $.each(packageSearchIndex, function(index, item) {
-                if (ui.item.p == item.l) {
-                    urlPrefix = item.m + slash;
-                }
-            });
-            return urlPrefix;
-        } else {
-            return urlPrefix;
-        }
-    }
-    return urlPrefix;
+    return "";
 }
 var watermark = 'Search';
 $(function() {