Bug 16305

Summary: Remove the use of "onclick" from transport cost matrix
Product: Koha Reporter: Owen Leonard <oleonard>
Component: System AdministrationAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle, testopia, veron
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/admin/transport-cost-matrix.pl
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 16305 - Remove the use of "onclick" from transport cost matrix
Bug 16305 - Remove the use of "onclick" from transport cost matrix
[PASSED QA] Bug 16305 - Remove the use of "onclick" from transport cost matrix

Description Owen Leonard 2016-04-20 00:58:52 UTC
There are a few places in the transport cost matrix template where event attributes (onclick, onblur) are used. These should be rewritten so that JS functionality can be separate from the markup.
Comment 1 Owen Leonard 2016-04-20 01:10:17 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-04-20 09:36:52 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2016-04-25 09:56:55 UTC
Created attachment 50624 [details] [review]
[PASSED QA] 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>
Comment 4 Kyle M Hall (khall) 2016-04-29 15:50:18 UTC
Pushed to master for Koha 16.05. Thanks Owen!