Bugzilla – Attachment 50010 Details for
Bug 15868
Ask for confirmation before deleting MARC modification template action
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.22.x] Bug 15868: Ask for confirmation when deleting a MMT action
Bug-15868-Ask-for-confirmation-when-deleting-a-MMT.patch (text/plain), 2.34 KB, created by
Julian Maurice
on 2016-04-07 05:44:59 UTC
(
hide
)
Description:
[3.22.x] Bug 15868: Ask for confirmation when deleting a MMT action
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2016-04-07 05:44:59 UTC
Size:
2.34 KB
patch
obsolete
>From 9fddbc045da2dc25389e924262bd8f6e2bc99bfd Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 7 Apr 2016 07:43:21 +0200 >Subject: [PATCH] Bug 15868: Ask for confirmation when deleting a MMT action > >Test plan: >Create marc modification template >Add an action >Delete it >With this patch you must get a confirmation mesg > >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > .../prog/en/modules/tools/marc_modification_templates.tt | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >index 0dcaab9..6343291 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >@@ -194,9 +194,12 @@ function clearFormElements(divId) { > > } > >+function confirmDeleteAction() { >+ return confirm(_("Are you sure you wish to delete this template action?")); >+} >+ > function confirmDelete() { >- var agree = confirm(_("Are you sure you wish to delete this template?")); >- return agree; >+ return confirm(_("Are you sure you wish to delete this template?")); > } > > var modaction_legend_innerhtml; >@@ -443,7 +446,7 @@ function setSelectByValue( selectId, value ) { > "[% ActionsLoo.conditional_regex |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]", > "[% ActionsLoo.description |replace('\\\\', '\\\\') |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]" > );updateAllEvery();'>Edit</a></td> >- <td><a href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]">Delete</a></td> >+ <td><a href="marc_modification_templates.pl?template_id=[% ActionsLoo.template_id %]&op=delete_action&mmta_id=[% ActionsLoo.mmta_id %]" onclick="return confirmDeleteAction();">Delete</a></td> > </tr> > [% END %] > </table> >-- >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 15868
:
48775
|
48787
|
49336
| 50010