Files
zulip/static/js/analytics/support.js
Anders Kaseorg 4e42137bd9 js: Replace deprecated jQuery event handler shorthand.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-21 12:01:26 -07:00

19 lines
558 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").on("click", function () {
common.copy_data_attribute_value($(this), "copytext");
});
});