Bug 16310 - Remove the use of "onclick" from audio alerts template
authorOwen Leonard <oleonard@myacpl.org>
Wed, 20 Apr 2016 14:29:03 +0000 (10:29 -0400)
committerFrédéric Demians <f.demians@tamil.fr>
Fri, 5 Aug 2016 05:47:25 +0000 (07:47 +0200)
commit32833f95dbf8fd2559b2da4146b30e850182ee0f
treee312241bf9e55359c85ab1cbe32849c147b15987
parentc0e2610bda62b3890fd5416124bc9c1157c23d4d
Bug 16310 - Remove the use of "onclick" from audio alerts template

This patch removes one use of "onclick" in favor of defining events in
the JavaScript.

This patch also makes changes to the style of some buttons to make the
interface a little more consistent with current practices.

To test, apply the patch and go to Administration -> Audio alerts.

- In the list of existing audio alerts, click the "Edit" button for any
  alert. The correct data should be loaded in the edit form.

Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit fcd139b22239206142809993cf9e328a3cdce38d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/audio_alerts.tt
koha-tmpl/intranet-tmpl/prog/js/audio_alerts.js