Bug 17191: Confirm message on deleting tag in OPAC
Edit: removing use of onclick To test: 1) Log into OPAC, go to your tags 2) Click Delete 3) Confirm message should pop up 4) Ensure clicking Cancel works as expected, ensure clicking OK works as expected Sponsored-by: Catalyst IT Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
cc1c82edb6
commit
470d76c635
|
|
@ -153,7 +153,7 @@
|
|||
[% MY_TAG.date_created | $KohaDates %]
|
||||
</span>
|
||||
</td>
|
||||
<td><input type="submit" name="del[% MY_TAG.tag_id %]" value="Delete" class="btn btn-danger btn-mini" /></td>
|
||||
<td><input type="submit" name="del[% MY_TAG.tag_id %]" value="Delete" class="btn btn-danger btn-mini delete" /></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
|
|
@ -171,7 +171,13 @@
|
|||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
$(document).ready(function(){
|
||||
var MSG_DELETE_TAG = _("Are you sure you want to delete this tag?");
|
||||
$(".delete").on("click", function(){
|
||||
return confirmDelete(MSG_DELETE_TAG);
|
||||
});
|
||||
|
||||
$("#mytagst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aaSorting": [[ 2, "asc" ]],
|
||||
"aoColumnDefs": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue