Bugzilla – Attachment 49616 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.24 KB, created by
Aleisha Amohia
on 2016-03-29 01:43:30 UTC
(
hide
)
Description:
Bug 2324: Adding confirm dialog when undoing import
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-03-29 01:43:30 UTC
Size:
2.24 KB
patch
obsolete
>From 1ca2580720dd287ab16ff633f338e8b61721cd0e 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 > >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 >--- > 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..eec5b18 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); return 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> >-- >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 2324
:
49616
|
49717
|
49938
|
49958