Bugzilla – Attachment 105172 Details for
Bug 25563
Cannot submit "add order from MARC file" form after alert
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25563: Only submit form after is it checked
Bug-25563-Only-submit-form-after-is-it-checked.patch (text/plain), 2.07 KB, created by
Nick Clemens (kidclamp)
on 2020-05-21 10:10:40 UTC
(
hide
)
Description:
Bug 25563: Only submit form after is it checked
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-05-21 10:10:40 UTC
Size:
2.07 KB
patch
obsolete
>From b9e471b13de725d5cd4fc2ea3ce653f807889a82 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 21 May 2020 10:08:29 +0000 >Subject: [PATCH] Bug 25563: Only submit form after is it checked > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js | 5 +++-- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 80d6cba40c..282fbca0d5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -379,7 +379,7 @@ > </div> > > <fieldset class="action"> >- <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a> >+ <input type="button" id="checkAform" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a> > </fieldset> > </form> > [% ELSE %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >index 5c10241769..e13a85227f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >@@ -48,7 +48,7 @@ $(document).ready(function() { > return false; > }); > >- $("#Aform").on("submit", function(){ >+ $("#checkAform").on("click", function(){ > if ( $("input:checkbox[name='import_record_id']:checked").length < 1 ) { > alert( ERR_NO_RECORD_SELECTED ); > return false; >@@ -72,7 +72,8 @@ $(document).ready(function() { > return false; > } > >- return disableUnchecked($(this)); >+ disableUnchecked($(this)); >+ $("#Aform").submit(); > }); > > $('#tabs').tabs(); >-- >2.11.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 25563
:
105171
|
105172
|
105173
|
105183