Bugzilla – Attachment 125790 Details for
Bug 29093
Article requests: Checkbox for table of contents
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29093: (follow-up) Fix the all fields empty-warning
Bug-29093-follow-up-Fix-the-all-fields-empty-warni.patch (text/plain), 1.56 KB, created by
Marcel de Rooy
on 2021-10-06 12:23:07 UTC
(
hide
)
Description:
Bug 29093: (follow-up) Fix the all fields empty-warning
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-06 12:23:07 UTC
Size:
1.56 KB
patch
obsolete
>From aedda2e0f24ae17b3637a5c76a51ba469d9945c0 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 6 Oct 2021 11:56:33 +0000 >Subject: [PATCH] Bug 29093: (follow-up) Fix the all fields empty-warning >Content-Type: text/plain; charset=utf-8 > >We should allow checking the TOC box only. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../opac-tmpl/bootstrap/en/modules/opac-request-article.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt >index d30d7a1197..79bb53c908 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt >@@ -274,7 +274,7 @@ $(document).ready( function() { > } > > // Check if all fields are blank >- if( m.length == 0 && $('#title').val()=='' && $('#author').val()=='' && $('#volume').val()=='' && $('#issue').val()=='' && $('#date').val()=='' && $('#pages').val()=='' && $('#chapters').val()=='' && $('#patron_notes').val()=='' ) { >+ if( m.length == 0 && $('#title').val()=='' && $('#author').val()=='' && $('#volume').val()=='' && $('#issue').val()=='' && $('#date').val()=='' && $('#pages').val()=='' && $('#chapters').val()=='' && $('#patron_notes').val()=='' && !$('input[name="toc_request"]').prop('checked') ) { > alert( _("Please fill in at least one field.") ); > return 0; > } >-- >2.20.1
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 29093
:
125190
|
125191
|
125192
|
125288
|
125289
|
125290
|
125448
|
125449
|
125450
|
125772
|
125773
|
125774
|
125775
|
125787
|
125788
|
125789
| 125790 |
125791
|
125792