Bugzilla – Attachment 54893 Details for
Bug 17191
Confirm message on deleting tag in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17191: Confirm message on deleting tag in OPAC
Bug-17191-Confirm-message-on-deleting-tag-in-OPAC.patch (text/plain), 2.02 KB, created by
Aleisha Amohia
on 2016-08-25 21:32:15 UTC
(
hide
)
Description:
Bug 17191: Confirm message on deleting tag in OPAC
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-08-25 21:32:15 UTC
Size:
2.02 KB
patch
obsolete
>From 0befe46a8f2fa1f9ece4817c7d7b51f4a602bae0 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 24 Aug 2016 20:51:32 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt >index 295c32d..052acd6 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt >@@ -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": [ >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17191
:
54835
|
54854
|
54893
|
55296