do not modify hash to prevent loosing nav history

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-27 14:06:12 +00:00
parent 6cb697b607
commit 305d083e7c
2 changed files with 7 additions and 3 deletions

View File

@ -645,7 +645,9 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
text=text.replace(/>/g,">"); text=text.replace(/>/g,">");
mainContent.find("#artifact-content-text" ).html(text); mainContent.find("#artifact-content-text" ).html(text);
prettyPrint(); prettyPrint();
goToAnchor("artifact-content-text-header"); // olamy do not move to anchor to not loose nav history
//goToAnchor("artifact-content-text-header");
//window.location.href=window.location+"#artifact-content-text-header";
} }
}); });
return; return;
@ -679,7 +681,9 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg()); mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
mainContent.find("#artifact-content-text" ).html(text); mainContent.find("#artifact-content-text" ).html(text);
prettyPrint(); prettyPrint();
goToAnchor("artifact-content-text-header"); // olamy do not move to anchor to not loose nav history
//goToAnchor("artifact-content-text-header");
//window.location.href=window.location+"#artifact-content-text-header";
} }
}); });
} }

View File

@ -846,7 +846,7 @@
<ul id="artifact-content-list-files" class="package-list"> <ul id="artifact-content-list-files" class="package-list">
{{each artifactDownloadInfos}} {{each artifactDownloadInfos}}
<li id="${$value.classifier}:${$value.version}:${$value.packaging}"> <li id="${$value.classifier}:${$value.version}:${$value.packaging}">
<a href="#">${$value.packaging}:${$value.version}&nbsp;-&nbsp;${$value.size}</a> <a>${$value.packaging}:${$value.version}&nbsp;-&nbsp;${$value.size}</a>
</li> </li>
{{/each}} {{/each}}
</ul> </ul>