mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
confirm_dialog: Rename confirm_dialog_yes_button class.
This commit renames confirm_dialog_yes_button class to confirm_dialog_submit_button. This will help in keeping a general class name when deduplicating the code for confirm_dialog and edit_fields_modal.
This commit is contained in:
@@ -926,7 +926,7 @@ export function initialize() {
|
||||
}
|
||||
|
||||
function do_archive_stream() {
|
||||
const stream_id = $(".confirm_dialog_yes_button").data("stream-id");
|
||||
const stream_id = $(".confirm_dialog_submit_button").data("stream-id");
|
||||
if (!stream_id) {
|
||||
ui_report.client_error(
|
||||
$t_html({defaultMessage: "Invalid stream id"}),
|
||||
@@ -957,7 +957,7 @@ export function initialize() {
|
||||
fade: true,
|
||||
});
|
||||
|
||||
$(".confirm_dialog_yes_button").attr("data-stream-id", stream_id);
|
||||
$(".confirm_dialog_submit_button").attr("data-stream-id", stream_id);
|
||||
});
|
||||
|
||||
$("#subscriptions_table").on("click", ".stream-row", function (e) {
|
||||
|
||||
Reference in New Issue
Block a user