Bug 18551: followup - hide advanced filters in header, move hidding to css file
Test plan: The same as first patch, but also with advanced search form in header hidden on page load - see comment 4 Issue with advanced search form is gone. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Philippe <philippe.audet-fortin@inlibro.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
7fe4d242aa
commit
ae3863153d
|
|
@ -2790,3 +2790,33 @@ div[class$="_table_controls"] {
|
|||
.order-control {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#borrower_message {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modal-textarea {
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
fieldset.rows + fieldset.action {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.yui-u .rows li p label.widelabel {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#pat_member #patron_list_dialog,
|
||||
#pat_member #searchresults,
|
||||
#patron_search #filters {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,9 +161,12 @@ $(document).ready(function() {
|
|||
$('#filters').toggle();
|
||||
$('.filteraction').toggle();
|
||||
});
|
||||
[% IF ( advsearch ) %]$("#filteraction_on").toggle();
|
||||
[% ELSE %]$("#filters").toggle();
|
||||
$("#filteraction_off").toggle();[% END %]
|
||||
[% IF ( advsearch ) %]
|
||||
$("#filteraction_on").toggle();
|
||||
$("#filters").show();
|
||||
[% ELSE %]
|
||||
$("#filteraction_off").toggle();
|
||||
[% END %]
|
||||
[% SET dateformat = Koha.Preference('dateformat') %]
|
||||
$("#searchfieldstype").change(function() {
|
||||
if ( $(this).val() == 'dateofbirth' ) {
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ function filterByFirstLetterSurname(letter) {
|
|||
<div class="yui-b">
|
||||
<div class="yui-g">
|
||||
[% IF CAN_user_tools_manage_patron_lists %]
|
||||
<div id="patron_list_dialog" class="dialog alert" style="display:none">
|
||||
<div id="patron_list_dialog" class="dialog alert">
|
||||
Added <span class="patrons-length"></span> patrons to <a></a>.
|
||||
</div>
|
||||
[% END %]
|
||||
|
|
@ -354,7 +354,7 @@ function filterByFirstLetterSurname(letter) {
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
<div id="searchresults" style="display:none">
|
||||
<div id="searchresults">
|
||||
<div id="searchheader">
|
||||
<h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember %]'[% END %]</span></h3>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue