Bugzilla – Attachment 48908 Details for
Bug 16014
OAI sets can be deleted without warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 16014: Display a warning on deleting OAI sets
SIGNED-OFF-Bug-16014-Display-a-warning-on-deleting.patch (text/plain), 1.91 KB, created by
Aleisha Amohia
on 2016-03-10 02:12:58 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16014: Display a warning on deleting OAI sets
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-03-10 02:12:58 UTC
Size:
1.91 KB
patch
obsolete
>From 5aa461267b163d4673342f871373dd0409ed4318 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 9 Mar 2016 11:57:47 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 16014: Display a warning on deleting OAI > sets > >A JavaScript alert should ask the user to confirm deletion of a OAI set. > >Test plan: >Define a OAI set >Delete it >=> With this patch you should get a warning > >Signed-off-by: Aleisha <aleishaamohia@hotmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt >index 06bb16a..d78dd1f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt >@@ -16,6 +16,16 @@ function delDescField(minusButton) { > var li = $(minusButton).parent('li'); > $(li).remove(); > } >+ >+function confirmDelete() { >+ return confirm(_("Are you sure you want to delete this OAI set?")); >+} >+ >+$(document).ready(function() { >+ $(".delete_oai_set").on("click",function(){ >+ return confirmDelete(); >+ }); >+}); > //]]> > </script> > </head> >@@ -104,7 +114,7 @@ function delDescField(minusButton) { > <td> > <a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id %]">Modify</a> > | >- <a href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id %]">Delete</a> >+ <a class="delete_oai_set" href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id %]">Delete</a> > | > <a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id %]">Define mappings</a> > </td> >-- >1.7.10.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 16014
:
48849
| 48908