archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1301261 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js
Date Thu, 15 Mar 2012 22:58:08 GMT
Author: olamy
Date: Thu Mar 15 22:58:07 2012
New Revision: 1301261

URL: http://svn.apache.org/viewvc?rev=1301261&view=rev
Log:
reset modified field when user has been modified

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js?rev=1301261&r1=1301260&r2=1301261&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js
Thu Mar 15 22:58:07 2012
@@ -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);



Mime
View raw message