Commit 8786366e by Damien Moulard

linting

parent 74b71e5d
Pipeline #1438 failed with stage
in 1 minute 34 seconds
...@@ -152,6 +152,8 @@ function _really_save_new_coop(email, fname, lname, cap, pm, cn, bc, msex) { ...@@ -152,6 +152,8 @@ function _really_save_new_coop(email, fname, lname, cap, pm, cn, bc, msex) {
return console.log(err); return console.log(err);
} }
return null;
}); });
delete coop._rev; delete coop._rev;
} }
...@@ -411,6 +413,8 @@ function get_latest_odoo_coop_bb() { ...@@ -411,6 +413,8 @@ function get_latest_odoo_coop_bb() {
return latest_odoo_coop_bb; return latest_odoo_coop_bb;
} }
return null;
} }
function generate_email() { function generate_email() {
......
...@@ -409,6 +409,7 @@ if (coop_is_connected()) { ...@@ -409,6 +409,7 @@ if (coop_is_connected()) {
$('.item').click(display_possible_actions); $('.item').click(display_possible_actions);
// dispatch_coops_in_boxes(); // dispatch_coops_in_boxes();
return null;
}); });
console.log(problematic_members); console.log(problematic_members);
......
...@@ -272,7 +272,7 @@ function decrement_makeups(member_ids) { ...@@ -272,7 +272,7 @@ function decrement_makeups(member_ids) {
* Send request to update members nb of makeups to do * Send request to update members nb of makeups to do
* @param {Array} member_ids * @param {Array} member_ids
*/ */
function increment_makeups(member_ids) { function increment_makeups(member_ids) {
openModal(); openModal();
data = []; data = [];
...@@ -350,7 +350,7 @@ function display_possible_members() { ...@@ -350,7 +350,7 @@ function display_possible_members() {
id: member.id, id: member.id,
name: member.name, name: member.name,
makeups_to_do: 0 makeups_to_do: 0
}) });
openModal( openModal(
`Ajouter un rattrapage à ${member.name} ?`, `Ajouter un rattrapage à ${member.name} ?`,
...@@ -375,7 +375,7 @@ function display_possible_members() { ...@@ -375,7 +375,7 @@ function display_possible_members() {
if (no_result === true) { if (no_result === true) {
$(".search_results_text").hide(); $(".search_results_text").hide();
$('.search_member_results').html(`<p> $('.search_member_results').html(`<p>
<i>Aucun résultat ! Vérifiez votre recherche, ou si le.la membre n\'est pas déjà dans le tableau...</i> <i>Aucun résultat ! Vérifiez votre recherche, ou si le.la membre n'est pas déjà dans le tableau...</i>
</p>`); </p>`);
} }
} }
...@@ -410,7 +410,7 @@ $(document).ready(function() { ...@@ -410,7 +410,7 @@ $(document).ready(function() {
display_possible_members(); display_possible_members();
}, },
error: function(data) { error: function() {
err = { err = {
msg: "erreur serveur lors de la recherche de membres", msg: "erreur serveur lors de la recherche de membres",
ctx: 'confirm_movement.search_members' ctx: 'confirm_movement.search_members'
......
...@@ -550,6 +550,8 @@ function open_coop_form(e) { ...@@ -550,6 +550,8 @@ function open_coop_form(e) {
console.error(error); console.error(error);
report_JS_error(error, 'prepa-odoo'); report_JS_error(error, 'prepa-odoo');
} }
return null;
} }
function ask_for_deletion() { function ask_for_deletion() {
...@@ -692,6 +694,8 @@ function retrieve_all_coops() { ...@@ -692,6 +694,8 @@ function retrieve_all_coops() {
return b.timestamp - a.timestamp; return b.timestamp - a.timestamp;
}); });
dispatch_coops_in_boxes(); dispatch_coops_in_boxes();
return null;
}); });
} catch (err) { } catch (err) {
error = {msg: err.name + ' : ' + err.message, ctx: 'retrieve_all_coops'}; error = {msg: err.name + ' : ' + err.message, ctx: 'retrieve_all_coops'};
......
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