MCPcopy Create free account
hub / github.com/KDAB/codebrowser / text_search

Function text_search

data/codebrowser.js:988–995  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

986
987 // Do a google seatch of the text on the project.
988 var text_search = function(text) {
989 var location = "" + (window.location);
990 var idx = location.indexOf(file);
991 if (idx < 0)
992 return;
993 location = location.substring(0, idx);
994 window.location = "http://google.com/search?sitesearch=" + encodeURIComponent(location) + "&q=" + encodeURIComponent(text);
995 }
996
997//BEGIN code duplicated in indexscript.js
998 // callback for jqueryui's autocomple activate

Callers 1

activateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected