archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1239829 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js
Date Thu, 02 Feb 2012 20:43:03 GMT
Author: olamy
Date: Thu Feb  2 20:43:02 2012
New Revision: 1239829

URL: http://svn.apache.org/viewvc?rev=1239829&view=rev
Log:
remove non needed event handler

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js?rev=1239829&r1=1239828&r2=1239829&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js
Thu Feb  2 20:43:02 2012
@@ -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(){



Mime
View raw message