2020-07-02 01:45:54 +02:00
|
|
|
$(() => {
|
2019-04-19 18:17:41 +02:00
|
|
|
$("body").on("click", ".scrub-realm-button", function (e) {
|
|
|
|
e.preventDefault();
|
2019-11-02 00:06:25 +01:00
|
|
|
const string_id = $(this).data("string-id");
|
2020-07-15 00:34:28 +02:00
|
|
|
const message =
|
|
|
|
'Do you really want to scrub the realm "' +
|
|
|
|
string_id +
|
|
|
|
'"? This action is irreversible.';
|
2020-07-15 00:33:36 +02:00
|
|
|
// eslint-disable-next-line no-alert
|
|
|
|
if (confirm(message)) {
|
2019-04-19 18:17:41 +02:00
|
|
|
this.form.submit();
|
|
|
|
}
|
|
|
|
});
|
2019-06-12 16:09:24 +02:00
|
|
|
|
2020-07-20 21:26:58 +02:00
|
|
|
$("a.copy-button").on("click", function () {
|
2019-09-18 15:04:36 +02:00
|
|
|
common.copy_data_attribute_value($(this), "copytext");
|
2019-06-12 16:09:24 +02:00
|
|
|
});
|
2019-04-19 18:17:41 +02:00
|
|
|
});
|