Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
8786366e
Commit
8786366e
authored
Nov 16, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
74b71e5d
Pipeline
#1438
failed with stage
in 1 minute 34 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
inscriptions.js
members/static/js/inscriptions.js
+4
-0
manage_mess.js
members/static/js/manage_mess.js
+1
-0
members_admin.js
members/static/js/members_admin.js
+10
-10
prepa_odoo.js
members/static/js/prepa_odoo.js
+4
-0
No files found.
members/static/js/inscriptions.js
View file @
8786366e
...
@@ -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
()
{
...
...
members/static/js/manage_mess.js
View file @
8786366e
...
@@ -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
);
...
...
members/static/js/members_admin.js
View file @
8786366e
...
@@ -146,11 +146,11 @@ function display_makeups_members() {
...
@@ -146,11 +146,11 @@ function display_makeups_members() {
"sSortDescending"
:
": activer pour trier la colonne par ordre décroissant"
"sSortDescending"
:
": activer pour trier la colonne par ordre décroissant"
},
},
"select"
:
{
"select"
:
{
"rows"
:
{
"rows"
:
{
"_"
:
"%d lignes séléctionnées"
,
"_"
:
"%d lignes séléctionnées"
,
"0"
:
"Aucune ligne séléctionnée"
,
"0"
:
"Aucune ligne séléctionnée"
,
"1"
:
"1 ligne séléctionnée"
"1"
:
"1 ligne séléctionnée"
}
}
}
}
}
}
});
});
...
@@ -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
}
?`
,
...
@@ -371,11 +371,11 @@ function display_possible_members() {
...
@@ -371,11 +371,11 @@ 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'
...
...
members/static/js/prepa_odoo.js
View file @
8786366e
...
@@ -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'
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment