mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
ES and TypeScript modules are strict by default and don’t need this directive. ESLint will remind us to add it to new CommonJS files and remove it from ES and TypeScript modules. Signed-off-by: Anders Kaseorg <anders@zulip.com>
21 lines
573 B
JavaScript
21 lines
573 B
JavaScript
"use strict";
|
|
|
|
$(() => {
|
|
$("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").on("click", function () {
|
|
common.copy_data_attribute_value($(this), "copytext");
|
|
});
|
|
});
|