Commit fa45be1e by Damien Moulard

linting #2

parent 8786366e
Pipeline #1439 failed with stage
in 1 minute 30 seconds
......@@ -41,7 +41,7 @@ module.exports = {
"block-scoped-var": "off",
"block-spacing": "warn",
"brace-style": "warn",
"callback-return": "warn",
"callback-return": "off",
"camelcase": "off",
"capitalized-comments": "off",
"class-methods-use-this": "error",
......
const possible_cooperative_state = {
suspended: "Rattrapage",
exempted: "Exempté.e",
alert: "En alerte",
up_to_date: "À jour",
unsubscribed: "Désinscrit.e",
delay: "En délai"
};
/**
* Request a 6 month delay
*/
......
......@@ -95,8 +95,6 @@ function init_history() {
$("#history").empty()
.text("Aucun historique... pour l'instant !");
} else {
let viewportWidth = $(window).width();
history_table = $('#history_table').DataTable({
data: partner_history,
columns: [
......
......@@ -360,7 +360,7 @@ function init_shifts_exchange() {
} else if (partner_data.cooperative_state === 'suspended'
&& partner_data.date_delay_stop === 'False') {
$("#suspended_content .makeups_nb").text(partner_data.makeups_to_do);
$("#suspended_content").show();
$(".select_makeups").on('click', () => {
......
......@@ -10,6 +10,15 @@ var base_location = null,
var date_options = {weekday: "long", year: "numeric", month: "long", day: "numeric"};
var time_options = {hour: '2-digit', minute:'2-digit'};
const possible_cooperative_state = {
suspended: "Rattrapage",
exempted: "Exempté.e",
alert: "En alerte",
up_to_date: "À jour",
unsubscribed: "Désinscrit.e",
delay: "En délai"
};
/* - Data */
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment