Skip to content

Commit 3018c32

Browse files
update to internal commit 6c124ce6
1 parent 5edaea2 commit 3018c32

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

_layouts/search-page.html

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -239,58 +239,6 @@ <h1>Search</h1>
239239

240240
}
241241
})
242-
243-
$("body").delegate("#searchResult .gsc-resultsRoot a.gs-title", "click", function(e) {
244-
e.preventDefault();
245-
246-
var link = $(this).eq(0).data("ctorig")
247-
if (link.indexOf("capture-vision/docs") > 0) {
248-
var repoType = getRepoType("web", link);
249-
if (link.indexOf("?") > 0) {
250-
var arr = link.split("?")
251-
if(arr[1].indexOf("#") > 0) {
252-
var subArr = arr[1].split("#")
253-
link = link +"?product=ddn&repoType="+ repoType +"&" + arr[1]
254-
} else {
255-
link = link + "&product=ddn&repoType=" + repoType
256-
}
257-
} else {
258-
link = link + "?product=ddn&repoType=" + repoType
259-
}
260-
}
261-
window.location.href = link
262-
});
263-
264-
function getRepoType(defaultValue, link) {
265-
var lang = getCurrentUrlLang(link, true)
266-
var repoType = defaultValue
267-
if (lang) {
268-
if (lang == 'android' || lang == 'objectivec-swift') {
269-
repoType = "mobile"
270-
} else if (lang == 'javascript') {
271-
repoType = "web"
272-
} else if (lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet') {
273-
repoType = "server"
274-
} else {
275-
repoType = "core"
276-
}
277-
} else {
278-
if(link.indexOf("/docs/server/") > 0) {
279-
repoType = "server"
280-
}
281-
if (link.indexOf("/docs/core/") > 0) {
282-
repoType = "core"
283-
}
284-
if (link.indexOf("/docs/mobile") > 0) {
285-
repoType = "mobile"
286-
}
287-
if (link.indexOf("/docs/web/") > 0) {
288-
repoType = "web"
289-
}
290-
}
291-
return repoType
292-
}
293-
294242
</script>
295243

296244
{%- include livehelp.html -%}

0 commit comments

Comments
 (0)