mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
16 lines
516 B
JavaScript
16 lines
516 B
JavaScript
$(() => {
|
|
$("body").on("click", ".scrub-realm-button", function (e) {
|
|
e.preventDefault();
|
|
const string_id = $(this).data("string-id");
|
|
const message = 'Do you really want to scrub the realm "' + string_id + '"? This action is irreversible.';
|
|
// eslint-disable-next-line no-alert
|
|
if (confirm(message)) {
|
|
this.form.submit();
|
|
}
|
|
});
|
|
|
|
$("a.copy-button").click(function () {
|
|
common.copy_data_attribute_value($(this), "copytext");
|
|
});
|
|
});
|