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:
sahil839
2021-07-05 18:54:28 +05:30
committed by Tim Abbott
parent 055d7113f2
commit 8fe401c38c
7 changed files with 25 additions and 25 deletions

View File

@@ -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) {