Files
zulip/static/js
Sahil Batra b8a1b13166 message_edit: Fix bug when multiple message edit forms are opened.
There is a bug when multiple message edit forms are opened at the
same time where undefined value of stream_id is sent to the server.
This happens because a global variable stream_widget is used to get
the id of stream selected in dropdown and value of stream_widget
variable keeps on changing when we open multiple message edit forms.
Thus, stream_widget can have the dropdown widget of already closed
edit form resulting in undefined value of stream id.

This commit changes the save_message_row_edit function to access
the dropdown element directly using message id instead of using
stream_widget.value() and thus we always use the correct dropdown
element to get the stream id.

We also move the stream_widget variable to be inside edit_message
function instead of being global variable for the module.

Fixes #19663.
2021-09-07 14:50:04 -07:00
..
2021-03-12 10:08:25 -08:00
2021-04-26 09:27:49 -07:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-07-05 17:04:06 -07:00
2021-05-28 15:44:49 -07:00
2021-06-22 09:09:36 -07:00
2021-06-24 16:19:22 -07:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-05-18 17:33:51 -07:00