Files
zulip/static/js
Sahil Batra c20f5a9866 dialog_widget: Add a new optional parameter validate_input.
This commit extends dialog_widget class by adding a new
optional paramter validate_input which will be a function
to validate the inputs in the dialog and will be called
before showing the spinner and calling the on_click function.

Currently, the password change modal uses this paramter to
validate that the old and new password inputs must not be
empty. Since the spinner will not be initiated in the case
where form is invalid, we need not hide the spinner after
showing the error and thus we can simplify the code to use
ui_report.error to show the error messages of empty fields.
2021-11-29 13:28:52 -08:00
..
2021-07-05 17:04:06 -07:00
2021-11-01 11:07:01 -07:00
2021-11-22 18:29:45 -08:00
2021-10-19 16:51:13 -07:00
2021-05-18 17:33:51 -07:00