Bug 7114 - Hiding filters on funds page messes with layout
Summary: Hiding filters on funds page messes with layout
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: 3.6
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Bugs List
URL: /cgi-bin/koha/admin/aqbudgets.pl?show...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-29 09:23 UTC by Katrin Fischer
Modified: 2013-12-05 19:57 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
screenshot (34.53 KB, image/png)
2011-10-29 09:23 UTC, Katrin Fischer
Details
Proposed patch (1.27 KB, patch)
2012-01-20 16:32 UTC, Garry Collum
Details | Diff | Splinter Review
[SIGNED-OFF] Bug 7114: Fixes the Funds' page display after the Filter link is clicked. (1.55 KB, patch)
2012-02-12 18:49 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2011-10-29 09:23:51 UTC
Created attachment 6110 [details]
screenshot

When hiding the filters on the funds page using the link 'filters' navigation and main part of the page crash together.
Comment 1 Garry Collum 2012-01-20 16:32:45 UTC Comment hidden (obsolete)
Comment 2 Garry Collum 2012-02-09 22:26:34 UTC
To test to to Budgets.  Click on a budget to get to its funds. Click on the 'Filters' link above the Fund Filters input form.
Comment 3 Katrin Fischer 2012-02-12 18:49:43 UTC
Created attachment 7584 [details] [review]
[SIGNED-OFF] Bug 7114: Fixes the Funds' page display after the Filter link is clicked.

On the funds page there is a Fund Filters form and a menu underneath this form.  When the form is hidden the contents of the page shift to the left overlapping the menu.  The menu underneath the fund filters form must have been a later edition.  This patch removes the line of javascript that shifts the contents of the page after the form is hidden.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch fixes the broken Layout when clicking on 'Filters'.

I am a bit confused by the link. I think it should toggle between different descriptions and
perhaps even hide all of the left navigation. This way the funds table would get more
room for display.
Comment 4 Garry Collum 2012-02-12 20:44:42 UTC
I think the menus under the Fund Filters box were a later addition.

We could either hide the menu and make the display move all the way to the left, or we could leave the menus and just make the display scoot over to the menus.
Comment 5 Katrin Fischer 2012-02-13 08:30:47 UTC
Not sure how 'make the display scoot over to the menus' would look like. Do you mean diplaying the fund tabel below the text menu?
Comment 6 Garry Collum 2012-02-13 11:44:33 UTC
I mean retaining the current menu of links, but moving the display as far to the left as possible without the menu overlapping the display when the form is hidden.

After you explained the purpose of hiding the filters, I think my preference would be to not apply the current patch and send another patch that hides the form as well as the menu when the 'filters' link is clicked.
Comment 7 Katrin Fischer 2012-02-13 11:48:55 UTC
I only wondered becaue the function didn't make much sense to me as it is now. I think you are right - the navigation links were probably added later, which explains why the display problem was not spotted too.
If you want to do another patch I will sign-off on it, but I think the patch as is is already an improvement.
Perhaps you can toggle the link description too? (Hide/Show filters/navigation?
Comment 8 Ian Walls 2012-02-16 16:22:43 UTC
Correctly fixes filter-hiding CSS.  Marking as Passed QA.
Comment 9 Paul Poulain 2012-02-17 09:07:41 UTC
Removing a hardcoded styling is always good. This should never have been in the templates in fact !
Comment 10 Jared Camins-Esakov 2012-05-23 13:02:03 UTC
This fix was included in the 3.6.x branch prior to 3.6.4.