]> source.dussan.org Git - archiva.git/commitdiff
reset modified field when user has been modified
authorOlivier Lamy <olamy@apache.org>
Thu, 15 Mar 2012 22:58:07 +0000 (22:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 15 Mar 2012 22:58:07 +0000 (22:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1301261 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js

index 29e60f2a3f24793141b07e8ecd719faf8ce0732d..b6398d4319c4d6c0067990a8f91dc13449cdc8b5 100644 (file)
@@ -229,6 +229,7 @@ $(function() {
           type: "GET",
           success: function(result) {
             displaySuccessMessage($.i18n.prop("user.locked",curUser.username()));
+            curUser.modified(false);
           },
           error: function(result) {
             var obj = jQuery.parseJSON(result.responseText);
@@ -245,6 +246,7 @@ $(function() {
           type: "GET",
           success: function(result) {
             displaySuccessMessage($.i18n.prop("user.unlocked",curUser.username()));
+            curUser.modified(false);
           },
           error: function(result) {
             var obj = jQuery.parseJSON(result.responseText);
@@ -265,6 +267,7 @@ $(function() {
           type: "GET",
           success: function(result) {
             displaySuccessMessage($.i18n.prop("user.passwordChangeRequired.updated",curUser.username(),value));
+            curUser.modified(false);
           },
           error: function(result) {
             var obj = jQuery.parseJSON(result.responseText);