Bug 11878 - Eliminate use of deprecated jQuery .toggle() method usage
authorOwen Leonard <oleonard@myacpl.org>
Tue, 4 Mar 2014 13:19:57 +0000 (08:19 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 26 Mar 2014 19:25:11 +0000 (19:25 +0000)
commit06026a7e297c8537c7a4a7cb9c7720b482f26eba
treed1859f39e83803775d9674d5ffc738d54f600f37
parente634a5ad82e9fa0aef96ae5a23bb5b389d1704e7
Bug 11878 - Eliminate use of deprecated jQuery .toggle() method usage

jQuery's .toggle() method can no longer be used to trigger a pair of
specified functions. .toggle() can only be used to change the visibility
of an element. This patch fixes a few places in Koha where the
deprecated functionality was used.

To test, apply the patch and clear your browser cache.

- View the system preferences page in the staff client. Clicking a
  heading ("Appearance" under OPAC preferences, for instance) should
  collapse that section. Clicking again should expand it.

- View the MARC detail page for a record in the OPAC. Clicking the "view
  plain" link should display the plain MARC view. Clicking the "view
  labeled" view should return to the original view. Test in both prog
  and bootstrap themes.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Followed test plan. Works fine.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, works as described.
No Javascript errors found.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt