]> git.koha-community.org Git - koha.git/commit
Bug 16305 - Remove the use of "onclick" from transport cost matrix
authorOwen Leonard <oleonard@myacpl.org>
Wed, 20 Apr 2016 01:02:05 +0000 (21:02 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 15:49:48 +0000 (15:49 +0000)
commit69ceb326f61ce94bbac740078eb3ebb8f41a03a1
treed81d4805e0a1d43ab5d15eaf486a8ddd0fb70efa
parent10694092dd01b7b70840b58d39e49f2743864549
Bug 16305 - Remove the use of "onclick" from transport cost matrix

This patch updates the transport cost matrix template to eliminate the
use of event attributes (onclick and onblur) in favor of JS separate
from the markup.

To test, apply the patch and go to Administration -> Transport cost
matrix.

- Click in any table cell. Form fields in the cell should activate.
- Check and uncheck the "disable" checkbox. The form field should be
  correctly disabled and enabled.
- Fill various enabled fields and submit the form to confirm that data
  is saved correctly.

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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt