zulip/static
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
..
assets icons: Set font-display: block for icon font. 2021-08-23 15:59:54 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images docs: Update the /help/ instructions for setting up OneLogin SAML. 2021-11-16 14:58:17 -08:00
js dialog_widget: Add a new optional parameter validate_input. 2021-11-29 13:28:52 -08:00
shared user_status: Fix status emoji handling of deactivated custom emoji. 2021-11-20 20:57:54 -08:00
styles data_exports: Fix the heading cutoff in Settings. 2021-11-28 07:15:28 -08:00
templates stream_create: Always insert change-stream-privacy button. 2021-11-24 10:49:29 -08:00
third lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00