Files
zulip/static/js/analytics/support.js
Anders Kaseorg a79322bc94 eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-03 16:55:50 -07:00

15 lines
503 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.';
if (confirm(message)) { // eslint-disable-line no-alert
this.form.submit();
}
});
$('a.copy-button').click(function () {
common.copy_data_attribute_value($(this), "copytext");
});
});