checkSecurityLinks();
checkCreateAdminLink();
$('#footer-content').html($('#footer-tmpl').tmpl(window.archivaRuntimeInfo));
+
+ // create handlers on menu entries to add class active on click
+ var alinkNodes=$("#sidebar-content #main-menu").find("li a");
+ $.log("alinkNodes:"+alinkNodes.length);
+ alinkNodes.on("click",function(){
+ $.log("click");
+ alinkNodes.parent("li").removeClass("active");
+ $(this).parent("li").addClass("active");
+ })
+
}
startArchivaApplication();
})
/**
* called from the menu to display tabs with users grid
*/
- displayUsersGrid=function(menuEntry) {
- $(menuEntry).parent().addClass("active");
+ displayUsersGrid=function() {
screenChange();
$("#main-content").html(mediumSpinnerImg());
jQuery("#main-content").attr("data-bind",'template: {name:"usersGrid"}');