Bug 12290

Summary: Gracefully handle errors in datatables.js
Product: Koha Reporter: David Cook <dcook>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description David Cook 2014-05-20 01:57:22 UTC
Datatables.js creates a few errors when using IE 8, as the String method "trim()" isn't supported, and IE 8 throws fatal errors when trying to use a property or a method on a null object.

It's easy enough to check support for "trim()" and just not use it if it's unavailable.

It's also easy enough to check for the existence of a variable before using a property or method.

Patch coming soon...
Comment 1 Owen Leonard 2018-02-12 17:59:09 UTC
IE 8 is too old to support.