From de91fd4a50b2700b6a80dc8409a751cf085b605d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 2 Feb 2012 20:43:02 +0000 Subject: [PATCH] remove non needed event handler git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1239829 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/redback/users.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js index 1ae13a0fd..2a177e195 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js @@ -216,27 +216,18 @@ $(function() { window.redbackModel.usersViewModel = new UsersViewModel(); window.redbackModel.usersViewModel.loadUsers(); ko.applyBindings(window.redbackModel.usersViewModel,jQuery("#main-content").get(0)); - $("#main-content").tab('show');//#users-view-tabs - $("#main-content #users-view-tabs a[data-toggle='tab']").on('show', function (e) { - //$.log( $(e.target).attr("href") ); // activated tab - //e.relatedTarget // previous tab - if ($(e.target).attr("href")=="#createUserForm") { - window.redbackModel.usersViewModel.addUser(); - } - if ($(e.target).attr("href")=="#users-view") { - $("#main-content #users-view-tabs-li-user-edit a").html($.i18n.prop("add")); - } - - }) + $("#main-content #users-view-tabs a:first").tab('show');// $("#main-content #users-view-tabs-content #users-view").addClass("active"); } activateUsersGridTab=function(){ + $("#main-content #users-view-tabs li").removeClass("active"); $("#main-content #users-view-tabs-content div").removeClass("active"); // activate users grid tab $("#main-content #users-view-tabs-content #users-view").addClass("active"); $("#users-view-tabs-li-users-grid").addClass("active"); + $("#main-content #users-view-tabs-li-user-edit a").html($.i18n.prop("add")); } activateUsersEditTab=function(){ -- 2.39.5