Bugzilla – Attachment 49958 Details for
Bug 2324
Undo Import should have a confirm dialog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2324: Adding confirm dialog when undoing import
Bug-2324-Adding-confirm-dialog-when-undoing-import.patch (text/plain), 2.37 KB, created by
Jonathan Druart
on 2016-04-06 12:19:34 UTC
(
hide
)
Description:
Bug 2324: Adding confirm dialog when undoing import
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-06 12:19:34 UTC
Size:
2.37 KB
patch
obsolete
>From a7eed60b67771d81d22bfbbbd01ba1b7f34da595 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Tue, 29 Mar 2016 01:40:35 +0000 >Subject: [PATCH] Bug 2324: Adding confirm dialog when undoing import > >EDIT: Comment 3 > >To test: >1) Go to Tools -> Staged MARC Management >2) Click on a batch to see details >3) If not already imported, then import, otherwise you should already see the button to undo import into catalog. >4) Click this button. Confirm you are asked to confirm. Confirm clicking Cancel will cancel the undo. Confirm clicking OK will continue with the undo. > >Sponsored-by: Catalyst IT > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >index d06ff67..0108ed0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >@@ -38,6 +38,7 @@ > <script type="text/javascript"> > //<![CDATA[ > var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); >+var MSG_CONFIRM_UNDO_IMPORT = _("Are you sure you want to undo the import of this batch into the catalog?"); > > $(document).ready(function(){ > $("#staged-record-matching-rules select").change(function(){ >@@ -363,7 +364,7 @@ $(document).ready(function(){ > <input type="hidden" name="runinbackground" value="" /> > <input type="hidden" name="completedJobID" value="" /> > <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" /> >- <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" onclick="return submitBackgroundJob(this.form);" /></fieldset> >+ <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" onclick="return confirm(MSG_CONFIRM_UNDO_IMPORT) && submitBackgroundJob(this.form);" /></fieldset> > </form> > <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> > <div id="jobfailed"></div></div> >-- >2.7.0
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 2324
:
49616
|
49717
|
49938
| 49958