Skip to content

Commit

Permalink
'hide/show all' link fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 16, 2011
1 parent b9a41fc commit fa3cef6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/main/scala/scala/tools/colladoc/page/Index.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Index(universe: Universe, index: DocIndex) extends PageIndex(universe, ind
else
loggedOut
}
{ super.scriptElement }
</div>

override def title = {
Expand Down
21 changes: 10 additions & 11 deletions src/main/webapp/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,21 @@ function configureTextFilter() {
});
}


function doStuff() {

var str= $("#textfilter input").attr("value");
$("iframe").eq(0).attr("src","search?q="+escape(str));
var str = $("#textfilter input").attr("value");
$("iframe").eq(0).attr("src", "search?q=" + escape(str));
}

function retrieveUrl(){
var url= $(location).attr("href");
var urlpart=url.split("q=")
function retrieveUrl() {
var url = location.href;
var urlpart = url.split("q=")

if ((urlpart[1] !="") && (typeof(urlpart[1]) !="undefined")) {
$("#textfilter input").attr("value",unescape(urlpart[1].replace(/\+/g, " ")));
$("iframe").eq(0).attr("src","search.html?q="+urlpart[1]);
}
if ((urlpart[1] != "") && (typeof(urlpart[1]) != "undefined")) {
$("#textfilter input").attr("value", unescape(urlpart[1].replace(/\+/g, " ")));
$("iframe").eq(0).attr("src", "search.html?q=" + urlpart[1]);
}
}

// Filters all focused templates and packages. This function should be made less-blocking.
// @param query The string of the query
function textFilter() {
Expand Down

0 comments on commit fa3cef6

Please sign in to comment.