Skip to content

Commit

Permalink
More info to confirm dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Nov 11, 2023
1 parent c9d5c6c commit 19346ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/pages/modules/templates/web_status.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<form method="post" action="?p=dashboard" class="float-right">
{{ csrf() }}
<input type="hidden" name="clear_cache" value="1" />
<button type="submit" onclick="return confirm('Are you sure?');" class="btn btn-danger" title="Clear Cache"><i class="fas fa-clear"></i>Clear cache</button>
<button type="submit" onclick="return confirm('Are you sure that you want to clear cache?');" class="btn btn-danger" title="Clear Cache"><i class="fas fa-clear"></i>Clear cache</button>
</form>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion system/templates/admin-bar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ html { margin-top: 32px !important; }
<form method="post" action="{{ constant('ADMIN_URL') }}?p=dashboard">
{{ csrf() }}
<input type="hidden" name="clear_cache" value="1" />
<a class="ab-item" href="#" onclick="confirm('Are you sure?') && $(this).closest('form').submit()" title="Clear Cache">Clear Cache</a>
<a class="ab-item" href="#" onclick="confirm('Are you sure that you want to clear cache?') && $(this).closest('form').submit()" title="Clear Cache">Clear Cache</a>
</form>
</li>
</ul>
Expand Down

0 comments on commit 19346ef

Please sign in to comment.