From ae0be5afb1f35060a5405c3406b6c28175ba4618 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 17 Nov 2016 16:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E5=89=8D?= =?UTF-8?q?=E9=9D=A2=E6=8F=90=E4=BA=A4=E7=9A=84=E6=A1=86=E6=9E=B6=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=BD=BF=E4=BF=9D=E5=AD=98=E5=BD=93=E5=89=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E5=90=8E=E5=8F=B3=E4=B8=8A=E8=A7=92?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0=E4=B8=8D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Users.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/Scripts/Users.js b/Bootstrap.Admin/Scripts/Users.js index 2afcfd80..e3e83c72 100644 --- a/Bootstrap.Admin/Scripts/Users.js +++ b/Bootstrap.Admin/Scripts/Users.js @@ -6,7 +6,8 @@ ID: "userID", UserName: "userName", Password: "password", - DisplayName: "displayName" + DisplayName: "displayName", + NewPassword: "confirm" } }), click: { @@ -48,9 +49,9 @@ } }] }, - success: function (src, data) { - if (src === 'save' && data.ID === $('#userId').val()) { - $('#userDisplayName').text(data.DisplayName); + callback: function (data) { + if (data && data.success && data.oper === 'save' && data.data.ID === $('#userId').val()) { + $('#userDisplayName').text(data.data.DisplayName); } } });