mirror of
https://github.com/openvk/openvk
synced 2025-06-07 06:57:00 +03:00
fix: add warning at nospam
This commit is contained in:
parent
1d1eae3da2
commit
bf87ab9858
4 changed files with 12 additions and 2 deletions
|
@ -102,7 +102,7 @@ final class NoSpamPresenter extends OpenVKPresenter
|
|||
|
||||
$item = new $model($item);
|
||||
|
||||
if (key_exists("deleted", $item->unwrap()) && $item->isDeleted()) {
|
||||
if (property_exists($item->unwrap(), "deleted") && $item->isDeleted()) {
|
||||
$item->setDeleted(0);
|
||||
$item->save();
|
||||
}
|
||||
|
|
|
@ -269,7 +269,13 @@
|
|||
search();
|
||||
}
|
||||
});
|
||||
$("#apply").on("click", () => { search(Number($("#noSpam-ban-type").val())); })
|
||||
$("#apply").on("click", (e) => {
|
||||
e.preventDefault()
|
||||
|
||||
MessageBox(tr("warning"), tr("nospam_prevention"), [tr("no"), tr("yes")], [Function.noop, () => {
|
||||
search(Number($("#noSpam-ban-type").val()));
|
||||
}]);
|
||||
})
|
||||
|
||||
async function selectChange(value) {
|
||||
console.log(value);
|
||||
|
|
|
@ -2323,6 +2323,8 @@
|
|||
"roll_back" = "rollback";
|
||||
"roll_backed" = "rollbacked";
|
||||
|
||||
"nospam_prevention" = "This action will affect a lot of data. Are you sure you want to apply?";
|
||||
|
||||
/* RSS */
|
||||
|
||||
"post_deact_in_general" = "Page deletion";
|
||||
|
|
|
@ -2218,6 +2218,8 @@
|
|||
"roll_back" = "откатить";
|
||||
"roll_backed" = "откачено";
|
||||
|
||||
"nospam_prevention" = "Данное действие затронет множество данных. Вы действительно хотите применить?";
|
||||
|
||||
/* RSS */
|
||||
|
||||
"post_deact_in_general" = "Удаление страницы";
|
||||
|
|
Loading…
Reference in a new issue