Bugzilla – Attachment 113683 Details for
Bug 7607
Advanced search: Index and search term don't match when leaving fields empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7607: (follow-up) Disable rather than remove inputs
Bug-7607-follow-up-Disable-rather-than-remove-inpu.patch (text/plain), 1.62 KB, created by
Victor Grousset/tuxayo
on 2020-11-16 19:16:17 UTC
(
hide
)
Description:
Bug 7607: (follow-up) Disable rather than remove inputs
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-11-16 19:16:17 UTC
Size:
1.62 KB
patch
obsolete
>From b6c5d45ecf734a2181c8f4b46b5c52e90e29227e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 5 Nov 2020 19:00:32 +0000 >Subject: [PATCH] Bug 7607: (follow-up) Disable rather than remove inputs > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index bd253deb25..68f9e88c6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -131,15 +131,16 @@ $.fn.selectTabByID = function (tabID) { > /* Search results browsing */ > /* forms with action leading to search */ > $("form[action*='search.pl']").submit(function(){ >- var removedPrior = false; >+ var disabledPrior = false; > $(".search_set").each(function(){ >- if( removedPrior ){ >- $(this).find('select[name="op"]').remove(); >- removedPrior = false; >+ if( disabledPrior ){ >+ $(this).find('select[name="op"]').prop("disabled","disabled"); >+ disabledPrior = false; > } > if( $(this).find('input[name="q"]').val() == "" ){ >- $(this).remove(); >- removedPrior = true; >+ $(this).find('input').prop("disabled","disabled"); >+ $(this).find('select').prop("disabled","disabled"); >+ disabledPrior = true; > } > }); > resetSearchContext(); >-- >2.29.2
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 7607
:
107963
|
110845
|
110849
|
111064
|
111065
|
112912
|
112963
|
112964
|
113133
|
113134
|
113682
|
113683
|
113691
|
113692
|
113781
|
113872
|
113873
|
113874