Fix removing table row when deleting user

This commit is contained in:
gplane 2017-04-26 16:32:17 +08:00
parent c723f0a780
commit 12bdac3bb4

View File

@ -2,7 +2,7 @@
* @Author: printempw * @Author: printempw
* @Date: 2016-07-22 14:02:44 * @Date: 2016-07-22 14:02:44
* @Last Modified by: g-plane * @Last Modified by: g-plane
* @Last Modified time: 2017-04-26 15:37:52 * @Last Modified time: 2017-04-26 16:29:33
*/ */
'use strict'; 'use strict';
@ -215,7 +215,7 @@ function deleteUserAccount(uid) {
})) }))
}).then(json => { }).then(json => {
if (json.errno == 0) { if (json.errno == 0) {
$('tr#' + uid).remove(); $('tr#user-' + uid).remove();
toastr.success(json.msg); toastr.success(json.msg);
} else { } else {
toastr.warning(json.msg); toastr.warning(json.msg);