From 22a4e13f546cf5ab85ceef892d51f18e52f920b7 Mon Sep 17 00:00:00 2001 From: liugang Date: Sat, 25 Nov 2023 16:35:26 +0800 Subject: [PATCH] + userJS: add function comment. --- module/user/js/batchcreate.ui.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/module/user/js/batchcreate.ui.js b/module/user/js/batchcreate.ui.js index 9356d4f933..31414ed916 100644 --- a/module/user/js/batchcreate.ui.js +++ b/module/user/js/batchcreate.ui.js @@ -1,3 +1,11 @@ +/** + * 根据用户类型切换控件的显示和隐藏。 + * Toggle the display of controls according to the user type. + * + * @param event event + * @access public + * @return void + */ function batchChangeType(event) { const isInside = type == 'inside'; @@ -21,6 +29,14 @@ function batchChangeRole(event) $(event.target).closest('tr').find('[name^="group"]').zui('picker').$.setValue(group); } +/** + * 切换显示选择所属公司或添加公司的输入框。 + * Toggle display company picker or input when add or edit a user. + * + * @param event event + * @access public + * @return void + */ function batchToggleNew(event) { const $currentRow = $(event.target).closest('tr'); @@ -29,7 +45,8 @@ function batchToggleNew(event) } /** - * Toggle checkbox and check password strength. + * 切换显示密码强度。 + * Toggle display password strength. * * @param event event * @access public