Some cleanup
This commit is contained in:
parent
fbe34189f6
commit
0f8d6d8a59
|
@ -2,6 +2,7 @@
|
||||||
/* eslint no-unused-vars: "off" */
|
/* eslint no-unused-vars: "off" */
|
||||||
/* eslint linebreak-style: "off" */
|
/* eslint linebreak-style: "off" */
|
||||||
/* eslint no-trailing-spaces: "off" */
|
/* eslint no-trailing-spaces: "off" */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint max-depth: ["error", 6]*/
|
/* eslint max-depth: ["error", 6]*/
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
// Put this file in path/to/plugin/amd/src
|
// Put this file in path/to/plugin/amd/src
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint no-var: "error" */
|
/* eslint no-var: "error" */
|
||||||
/* eslint no-unused-vars: "off" */
|
/* eslint no-unused-vars: "off" */
|
||||||
/* eslint linebreak-style: "off" */
|
/* eslint linebreak-style: "off" */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
/* eslint camelcase: "off" */
|
/* eslint camelcase: "off" */
|
||||||
// Put this file in path/to/plugin/amd/src
|
// Put this file in path/to/plugin/amd/src
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* eslint no-unused-vars: "off" */
|
/* eslint no-unused-vars: "off" */
|
||||||
/* eslint no-trailing-spaces: "off" */
|
/* eslint no-trailing-spaces: "off" */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint max-depth: ["error", 5] */
|
/* eslint max-depth: ["error", 5] */
|
||||||
// Put this file in path/to/plugin/amd/src
|
// Put this file in path/to/plugin/amd/src
|
||||||
// You can call it anything you like
|
// You can call it anything you like
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
/* eslint no-console: "off"*/
|
/* eslint no-console: "off"*/
|
||||||
/* eslint no-unused-vars: warn */
|
/* eslint no-unused-vars: warn */
|
||||||
/* eslint max-len: ["error", { "code": 160 }] */
|
/* eslint max-len: ["error", { "code": 160 }] */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint max-depth: ["error", 6] */
|
/* eslint max-depth: ["error", 6] */
|
||||||
/* eslint no-trailing-spaces: warn */
|
/* eslint no-trailing-spaces: warn */
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
|
@ -429,7 +430,7 @@ export default {
|
||||||
|
|
||||||
for (const ix in plans) {
|
for (const ix in plans) {
|
||||||
plans[ix].sort((a, b) => {
|
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) {
|
if (t == 0) {
|
||||||
// Sort by name if timing is equal
|
// Sort by name if timing is equal
|
||||||
t = a.name.localeCompare(b.name);
|
t = a.name.localeCompare(b.name);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
/* eslint no-console: "off"*/
|
/* eslint no-console: "off"*/
|
||||||
/* eslint no-unused-vars: warn */
|
/* eslint no-unused-vars: warn */
|
||||||
/* eslint max-len: ["error", { "code": 160 }] */
|
/* eslint max-len: ["error", { "code": 160 }] */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint no-trailing-spaces: warn */
|
/* eslint no-trailing-spaces: warn */
|
||||||
/* eslint max-depth: ["error", 6] */
|
/* eslint max-depth: ["error", 6] */
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint no-var: "error"*/
|
/* eslint no-var: "error"*/
|
||||||
/* eslint no-unused-vars: warn */
|
/* eslint no-unused-vars: warn */
|
||||||
/* eslint max-depth: ["error", 6] */
|
/* eslint max-depth: ["error", 6] */
|
||||||
|
/* eslint promise/no-nesting: "off" */
|
||||||
/* eslint camelcase: "off" */
|
/* eslint camelcase: "off" */
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
// Put this file in path/to/plugin/amd/src
|
// Put this file in path/to/plugin/amd/src
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint no-unused-vars: warn */
|
/* eslint no-unused-vars: warn */
|
||||||
/* eslint max-len: ["error", { "code": 160 }] */
|
/* eslint max-len: ["error", { "code": 160 }] */
|
||||||
/* eslint-disable no-trailing-spaces */
|
|
||||||
/* eslint capitalized-comments: "off" */
|
/* eslint capitalized-comments: "off" */
|
||||||
/* eslint-env es6*/
|
/* eslint-env es6*/
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,6 @@
|
||||||
{{/ core_form/element-template }}
|
{{/ core_form/element-template }}
|
||||||
{{#js}}
|
{{#js}}
|
||||||
require(['local_treestudyplan/util/formfields'], function(formfields) {
|
require(['local_treestudyplan/util/formfields'], function(formfields) {
|
||||||
formfields.textInteger({{#quote}}{{element.id}}{{/quote}},{{unsigned}},{{nonzero}});
|
formfields.textInteger({{#quote}}{{element.id}}{{/quote}}, {{unsigned}}, {{nonzero}});
|
||||||
});
|
});
|
||||||
{{/js}}
|
{{/js}}
|
Loading…
Reference in New Issue
Block a user