mirror of https://github.com/apache/archiva.git
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:
parent
0a391942e8
commit
0842752179
|
@ -22,7 +22,7 @@ appendArchivaVersion=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 "";
|
||||
|
@ -107,7 +107,7 @@ $.ajax({
|
|||
window.archivaJavascriptLog=data.javascriptLog;
|
||||
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();
|
||||
$("#loadingDiv").hide();
|
||||
drawQuickSearchAutocomplete();
|
||||
|
|
|
@ -72,7 +72,7 @@ function(jquery,ui,sammy,tmpl) {
|
|||
return item.name();
|
||||
});
|
||||
|
||||
$("#topbar-menu-container [redback-permissions]").each(function(element){
|
||||
$("#topbar-menu-container").find("[redback-permissions]").each(function(element){
|
||||
checkElementKarma(this);
|
||||
});
|
||||
$("#sidebar-content [redback-permissions]").each(function(element){
|
||||
|
@ -105,7 +105,7 @@ function(jquery,ui,sammy,tmpl) {
|
|||
$(this).hide();
|
||||
});
|
||||
|
||||
$("#sidebar-content [redback-permissions]").each(function(element){
|
||||
$("#sidebar-content").find("[redback-permissions]").each(function(element){
|
||||
$(this).hide();
|
||||
});
|
||||
$.log("hideElementWithKarma");
|
||||
|
|
Loading…
Reference in New Issue