From 1f78116b562161b2e6147f9cd823ce68c9f1b663 Mon Sep 17 00:00:00 2001 From: QingfengLee Date: Mon, 28 Oct 2019 15:08:21 +0800 Subject: [PATCH] a bug about "Enabled" option (#153) * Update server.conf Notify the client that when the server restarts so it can automatically reconnect. * Update server.conf * fix a bug about the user enable box. --- js/grids.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/grids.js b/js/grids.js index 217d162..0bc94fe 100644 --- a/js/grids.js +++ b/js/grids.js @@ -212,7 +212,7 @@ $(function () { formatter : checkFormatter, events: { 'click input': function (e, value, row) { - genericSetField('user_enable', $(this).is(':checked') ? '1' : '0', row.user_id); + genericSetField('user_enable', value === '1' ? '0': '1', row.user_id); } } },