match returns a boolean,start fixing jquery selector

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1376854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-08-24 08:11:38 +00:00
parent 0a391942e8
commit 0842752179
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ appendArchivaVersion=function(){
} }
timestampNoCache=function(){ timestampNoCache=function(){
if (window.archivaRuntimeInfo.version.match("SNAPSHOT$")=="SNAPSHOT"){ if (window.archivaRuntimeInfo.version.match("SNAPSHOT$")){
return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():""); return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():"");
} }
return ""; return "";
@ -107,7 +107,7 @@ $.ajax({
window.archivaJavascriptLog=data.javascriptLog; window.archivaJavascriptLog=data.javascriptLog;
window.archivaRuntimeInfo=data; window.archivaRuntimeInfo=data;
require(['sammy','jquery','jquery.tmpl','archiva.main','utils','domReady!'],function (domReady) { require(['sammy','jquery','jquery.tmpl','archiva.main','utils','domReady!'],function () {
startArchivaApplication(); startArchivaApplication();
$("#loadingDiv").hide(); $("#loadingDiv").hide();
drawQuickSearchAutocomplete(); drawQuickSearchAutocomplete();

View File

@ -72,7 +72,7 @@ function(jquery,ui,sammy,tmpl) {
return item.name(); return item.name();
}); });
$("#topbar-menu-container [redback-permissions]").each(function(element){ $("#topbar-menu-container").find("[redback-permissions]").each(function(element){
checkElementKarma(this); checkElementKarma(this);
}); });
$("#sidebar-content [redback-permissions]").each(function(element){ $("#sidebar-content [redback-permissions]").each(function(element){
@ -105,7 +105,7 @@ function(jquery,ui,sammy,tmpl) {
$(this).hide(); $(this).hide();
}); });
$("#sidebar-content [redback-permissions]").each(function(element){ $("#sidebar-content").find("[redback-permissions]").each(function(element){
$(this).hide(); $(this).hide();
}); });
$.log("hideElementWithKarma"); $.log("hideElementWithKarma");