added delete confirm
This commit is contained in:
@@ -112,6 +112,10 @@ ob_start();
|
||||
}
|
||||
});
|
||||
|
||||
$('.addbutton.delete:not(.locker), .addbutton.delete-big:not(.locker)').on('click', function(e) {
|
||||
return confirm("Biztos, hogy törölni szeretnéd?");
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php
|
||||
if ($page->is_page() && ($page->get_page() == 'tabor' && !$dev)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="buttons">
|
||||
<a href="/admin/lock_training/{$training->get_tr_id()}" class="addbutton {if !$training->get_tr_locked()}delete{else}add{/if}-big">
|
||||
<a href="/admin/lock_training/{$training->get_tr_id()}" class="addbutton {if !$training->get_tr_locked()}delete{else}add{/if}-big locker">
|
||||
{if !$training->get_tr_locked()}
|
||||
Lezárás
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user