Updated Branches:
  refs/heads/trunk 22e209e86 -> e6a05f414

AMBARI-3124. Incorrect behavior after entering wrong current password while 
editing user. (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/e6a05f41
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/e6a05f41
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/e6a05f41

Branch: refs/heads/trunk
Commit: e6a05f4141ae4eb960b0b72b42d1c4ba0f10d6f8
Parents: 22e209e
Author: Oleg Nechiporenko <[email protected]>
Authored: Fri Sep 6 12:04:49 2013 +0300
Committer: Oleg Nechiporenko <[email protected]>
Committed: Fri Sep 6 12:04:49 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/admin/user.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/e6a05f41/ambari-web/app/controllers/main/admin/user.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/user.js 
b/ambari-web/app/controllers/main/admin/user.js
index 26d6ac4..f775c9a 100644
--- a/ambari-web/app/controllers/main/admin/user.js
+++ b/ambari-web/app/controllers/main/admin/user.js
@@ -57,7 +57,7 @@ App.MainAdminUserController = Em.Controller.extend({
             event.context.deleteRecord();
 
             try {
-              App.store.commit()
+              App.store.commit();
             } catch (err) {
 
             }
@@ -97,8 +97,10 @@ App.MainAdminUserController = Em.Controller.extend({
       },
 
       error: function (request, ajaxOptions, error) {
-        callback(false, error);
-        console.log('error on change component host status')
+        var message = $.parseJSON(request.responseText).message;
+        message = message.substr(message.lastIndexOf(':') + 1);
+        callback(false, message);
+        console.log(message);
       },
 
       statusCode: require('data/statusCodes')

Reply via email to