The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 9d4ff301 authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Clear account cache when deleting or adding/editing a library card.

parent f5318ced
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<h2><?=$this->transEsc($pageTitle); ?></h2> <h2><?=$this->transEsc($pageTitle); ?></h2>
<form class="form-edit-card" method="post" name="<?=empty($this->card->id) ? 'newCardForm' : 'editCardForm'?>" autocomplete="off"> <form class="form-edit-card" method="post" name="<?=empty($this->card->id) ? 'newCardForm' : 'editCardForm'?>" autocomplete="off" data-clear-account-cache>
<input type="hidden" name="id" value="<?=empty($this->card->id) ? 'NEW' : $this->card->id ?>"/> <input type="hidden" name="id" value="<?=empty($this->card->id) ? 'NEW' : $this->card->id ?>"/>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="card_name"><?=$this->transEsc('Library Card Name'); ?>:</label> <label class="control-label" for="card_name"><?=$this->transEsc('Library Card Name'); ?>:</label>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<i class="fa fa-trash-o" aria-hidden="true"></i> <?=$this->transEsc('Delete')?> <i class="fa fa-trash-o" aria-hidden="true"></i> <?=$this->transEsc('Delete')?>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="<?=$this->url('librarycards-deletecard') ?>?cardID=<?=urlencode($record['id'])?>&amp;confirm=1"><?=$this->transEsc('confirm_dialog_yes') ?></a></li> <li><a href="<?=$this->url('librarycards-deletecard') ?>?cardID=<?=urlencode($record['id'])?>&amp;confirm=1" data-clear-account-cache><?=$this->transEsc('confirm_dialog_yes') ?></a></li>
<li><a href="#"><?=$this->transEsc('confirm_dialog_no')?></a></li> <li><a href="#"><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul> </ul>
</div> </div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment