change confirm() to ask()

This commit is contained in:
iBNu Maksum
2024-11-06 13:45:36 +07:00
parent 2b7361cf6b
commit b316e4a242
58 changed files with 132 additions and 108 deletions

View File

@ -6,7 +6,7 @@
<div class="panel-heading">
<div class="btn-group pull-right">
<a class="btn btn-primary btn-xs" title="save" href="{$_url}services/sync/hotspot"
onclick="return confirm('This will sync/send hotspot package to Mikrotik?')"><span
onclick="return ask(this, 'This will sync/send hotspot package to Mikrotik?')"><span
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> sync</a>
</div>{Lang::T('Hotspot Plans')}
</div>
@ -169,7 +169,7 @@
<a href="{$_url}services/edit/{$ds['id']}"
class="btn btn-info btn-xs">{Lang::T('Edit')}</a>
<a href="{$_url}services/delete/{$ds['id']}" id="{$ds['id']}"
onclick="return confirm('{Lang::T('Delete')}?')"
onclick="return ask(this, '{Lang::T('Delete')}?')"
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
</td>
</tr>