]> git.koha-community.org Git - koha.git/commit
Bug 10115 - Hiding advanced search in Orders search tab removes plus button
authorOwen Leonard <oleonard@myacpl.org>
Thu, 25 Apr 2013 12:49:51 +0000 (08:49 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 26 Apr 2013 11:54:18 +0000 (07:54 -0400)
commit5bff5aa448c921fb67879924a54b3704f5485eb1
treead6e99820120f723e1d57c81bb4f9da6000a62db
parent0d5916987e3320b2c52b8bb41cfd7e5a9015e751
Bug 10115 - Hiding advanced search in Orders search tab removes plus button

The logic of the JavaScript for showing and hiding additional options in
the orders search form wasn't quite right, resulting in the +/- control
being hidden incorrectly.

This patch corrects and simplifies the JS in order to fix the problem.

To test:
 - Open any page in Acquisitions which shows the orders search
   form in the header search bar (for instance, Acquisitions home).
 - Open the orders search tab and click on the "+" to show more
   options.
 - Click the "-" to hide the additional options. The additional options
   should now be hidden and the "+" displayed.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Works as expected
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit f8130fb8486a3bb840d37006ddfbf046cb9b161a)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc