mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
This commit was originally automatically generated using `tools/lint --only=eslint --fix`. It was then modified by tabbott to contain only changes to a set of files that are unlikely to result in significant merge conflicts with any open pull request, excluding about 20 files. His plan is to merge the remaining changes with more precise care, potentially involving merging parts of conflicting pull requests before running the `eslint --fix` operation. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
15 lines
509 B
JavaScript
15 lines
509 B
JavaScript
$(function () {
|
|
$("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.';
|
|
if (confirm(message)) { // eslint-disable-line no-alert
|
|
this.form.submit();
|
|
}
|
|
});
|
|
|
|
$('a.copy-button').click(function () {
|
|
common.copy_data_attribute_value($(this), "copytext");
|
|
});
|
|
});
|