Bugzilla – Attachment 54854 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), 1.88 KB, created by
Claire Gravely
on 2016-08-25 12:30:54 UTC
(
hide
)
Description:
Bug 17191: Confirm message on deleting tag in OPAC
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2016-08-25 12:30:54 UTC
Size:
1.88 KB
patch
obsolete
>From c2f74281c60e8a5d283c1d92be5c0684520055fd 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 > >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 | 5 ++++- > 1 file changed, 4 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..ef2e2da 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" onclick="return confirm(MSG_DELETE_TAG);" /></td> > </tr> > [% END %] > </tbody> >@@ -171,6 +171,9 @@ > [% INCLUDE 'datatables.inc' %] > <script type="text/javascript"> > //<![CDATA[ >+ >+ var MSG_DELETE_TAG = _("Are you sure you want to delete this tag?"); >+ > $(document).ready(function(){ > $("#mytagst").dataTable($.extend(true, {}, dataTablesDefaults, { > "aaSorting": [[ 2, "asc" ]], >-- >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