Bug 15912 - Correct JSHint errors in datatables.js
Summary: Correct JSHint errors in datatables.js
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 19:47 UTC by Owen Leonard
Modified: 2019-01-04 19:30 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2016-02-24 19:47:08 UTC
Following coding guideline JS8: "Follow guidelines set by JSHint," some errors should be corrected in datatables.js

koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 35, col 58, The array literal notation [] is preferable.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 45, col 19, Use '===' to compare with 'true'.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 50, col 33, The array literal notation [] is preferable.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 56, col 26, Use '===' to compare with 'true'.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 56, col 51, Use '===' to compare with '0'.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 58, col 26, Use '===' to compare with 'true'.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 63, col 2, Missing semicolon.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 81, col 9, 'iDelay' is already defined.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 113, col 2, Missing semicolon.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 136, col 2, Missing semicolon.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 454, col 2, Missing semicolon.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 460, col 2, Missing semicolon.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 548, col 23, Don't make functions within a loop.
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js: line 555, col 6, Unnecessary semicolon.