You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2012/09/27 16:06:13 UTC

svn commit: r1391018 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js: archiva/search.js templates/archiva/search.html

Author: olamy
Date: Thu Sep 27 14:06:12 2012
New Revision: 1391018

URL: http://svn.apache.org/viewvc?rev=1391018&view=rev
Log:
do not modify hash to prevent loosing nav history

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js?rev=1391018&r1=1391017&r2=1391018&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js Thu Sep 27 14:06:12 2012
@@ -645,7 +645,9 @@ define("archiva.search",["jquery","i18n"
               text=text.replace(/>/g,">");
               mainContent.find("#artifact-content-text" ).html(text);
               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;
@@ -679,7 +681,9 @@ define("archiva.search",["jquery","i18n"
                mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
                mainContent.find("#artifact-content-text" ).html(text);
                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";
              }
             });
     		  }

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html?rev=1391018&r1=1391017&r2=1391018&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html Thu Sep 27 14:06:12 2012
@@ -846,7 +846,7 @@
            <ul id="artifact-content-list-files" class="package-list">
            {{each artifactDownloadInfos}}
              <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>
            {{/each}}
            </ul>