Some cleanup

This commit is contained in:
PMKuipers 2024-07-19 17:48:21 +02:00
parent fbe34189f6
commit 0f8d6d8a59
8 changed files with 8 additions and 3 deletions

View File

@ -2,6 +2,7 @@
/* eslint no-unused-vars: "off" */
/* eslint linebreak-style: "off" */
/* eslint no-trailing-spaces: "off" */
/* eslint promise/no-nesting: "off" */
/* eslint max-depth: ["error", 6]*/
/* eslint-env es6*/
// Put this file in path/to/plugin/amd/src

View File

@ -1,6 +1,7 @@
/* eslint no-var: "error" */
/* eslint no-unused-vars: "off" */
/* eslint linebreak-style: "off" */
/* eslint promise/no-nesting: "off" */
/* eslint-env es6*/
/* eslint camelcase: "off" */
// Put this file in path/to/plugin/amd/src

View File

@ -1,5 +1,6 @@
/* eslint no-unused-vars: "off" */
/* eslint no-trailing-spaces: "off" */
/* eslint promise/no-nesting: "off" */
/* eslint max-depth: ["error", 5] */
// Put this file in path/to/plugin/amd/src
// You can call it anything you like

View File

@ -2,6 +2,7 @@
/* eslint no-console: "off"*/
/* eslint no-unused-vars: warn */
/* eslint max-len: ["error", { "code": 160 }] */
/* eslint promise/no-nesting: "off" */
/* eslint max-depth: ["error", 6] */
/* eslint no-trailing-spaces: warn */
/* eslint-env es6*/
@ -429,7 +430,7 @@ export default {
for (const ix in plans) {
plans[ix].sort((a, b) => {
const t = new Date(b.startdate).getTime() - new Date(a.startdate).getTime();
let t = new Date(b.startdate).getTime() - new Date(a.startdate).getTime();
if (t == 0) {
// Sort by name if timing is equal
t = a.name.localeCompare(b.name);

View File

@ -2,6 +2,7 @@
/* eslint no-console: "off"*/
/* eslint no-unused-vars: warn */
/* eslint max-len: ["error", { "code": 160 }] */
/* eslint promise/no-nesting: "off" */
/* eslint no-trailing-spaces: warn */
/* eslint max-depth: ["error", 6] */
/* eslint-env es6*/

View File

@ -1,6 +1,7 @@
/* eslint no-var: "error"*/
/* eslint no-unused-vars: warn */
/* eslint max-depth: ["error", 6] */
/* eslint promise/no-nesting: "off" */
/* eslint camelcase: "off" */
/* eslint-env es6*/
// Put this file in path/to/plugin/amd/src

View File

@ -1,6 +1,5 @@
/* eslint no-unused-vars: warn */
/* eslint max-len: ["error", { "code": 160 }] */
/* eslint-disable no-trailing-spaces */
/* eslint capitalized-comments: "off" */
/* eslint-env es6*/

View File

@ -39,6 +39,6 @@
{{/ core_form/element-template }}
{{#js}}
require(['local_treestudyplan/util/formfields'], function(formfields) {
formfields.textInteger({{#quote}}{{element.id}}{{/quote}},{{unsigned}},{{nonzero}});
formfields.textInteger({{#quote}}{{element.id}}{{/quote}}, {{unsigned}}, {{nonzero}});
});
{{/js}}