Koha/koha-tmpl/intranet-tmpl/prog/js
Owen Leonard 0c476f1508 Bug 16557 - Remove the use of "onclick" from several include files
This patch modifies several include files, removing "onclick" attributes
in favor of defining events in JavaScript.

A reusable "toggle" function has been added to the global JS file so
that clicking elements with the class "toggle_element" will toggle the
display of elements as defined in the click target's "data-element"
attribute.

Also changed: In subtypes_unimarc.inc some capitalization errors have
been fixed and label/id pairs corrected.

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

- On the Acquisitions home page, click the "Orders search" header search
  tab. Clicking the [+] link should expand and collapse the additional
  search fields.

- On the checkout or patron detail page, view the "Restrictions" tab.
  Click to add a restriction and use the datepicker to select a date.
  Clicking the "Clear date" link should clear the date.

- Trigger the help window on any page. Clicking the "close window"
  button should work correctly.

- Go to Administration -> Patron categories -> Edit. Checking and
  unchecking messaging preference options should work correctly. The "do
  not notify" checkbox should clear other checkboxes in that row and
  vice versa.

- In Serials, from a subscription detail page, clicking the "Renew"
  button should trigger the renew popup.

- Go to Acquisitions -> Vendor -> Add to basket -> From a subscription.
  Clicking the "Advanced search" link in the left hand sidebar should
  toggle the sidebar search form.

- In a UNIMARC system, view the advanced search page. Clicking the "Show
  coded information filters" link should show additional search fields.
  (I tested in my MARC21 system by temporarily moving line 174 of
  advsearch.tt to line 172).

Signed-off-by: Claire Gravely <c.gravely@arts.ac.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-06-24 13:51:01 +00:00
..
pages Bug 3669: Moving 'Add a new message' into a pop up box and adding to patron toolbar 2016-06-24 13:20:13 +00:00
acq.js
additem.js
ajax.js
audio_alerts.js Bug 16397 - Unable to delete audio alerts 2016-05-03 14:58:38 +00:00
automatic_item_modification_by_age.js Bug 16437 - (follow-up) Automatic item modifications by age needs prettying 2016-05-31 11:57:12 +00:00
background-job-progressbar.js
basket.js Bug 16490: Tidy updateLink and updateAllLinks 2016-06-24 13:45:45 +00:00
basketgroup.js
biblio_framework.js
cart.js Bug 16477 - Improve staff client cart JavaScript and template 2016-06-24 13:42:22 +00:00
cataloging.js
checkouts.js
datatables.js
file-upload.js
holds.js
item_search_fields.js
localcovers.js
marc_modification_templates.js Bug 16148: Fix submit button text 2016-06-17 16:11:43 +00:00
marc_subfields_structure.js
members.js Bug 16450 - Remove the use of "onclick" from guarantor search template 2016-05-31 11:53:32 +00:00
merge-record.js
offlinecirc.js
prevent_submit.js
sms_providers.js Bug 16301 - Remove the use of "onclick" from SMS cellular providers template 2016-04-29 15:51:08 +00:00
staff-global.js Bug 16557 - Remove the use of "onclick" from several include files 2016-06-24 13:51:01 +00:00
xmlControlfield.js