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
20d68cbe
Commit
20d68cbe
authored
May 02, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide 'informations' zone when not connected (orders helper)
parent
5277da76
Pipeline
#2153
passed with stage
in 1 minute 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
orders_helper.js
orders/static/js/orders_helper.js
+1
-0
helper.html
templates/orders/helper.html
+1
-1
No files found.
orders/static/js/orders_helper.js
View file @
20d68cbe
...
@@ -2482,6 +2482,7 @@ $(document).ready(function() {
...
@@ -2482,6 +2482,7 @@ $(document).ready(function() {
if
(
coop_is_connected
())
{
if
(
coop_is_connected
())
{
$
(
'#new_order_form'
).
show
();
$
(
'#new_order_form'
).
show
();
$
(
'#existing_orders_area'
).
show
();
$
(
'#existing_orders_area'
).
show
();
$
(
'#common_info_area'
).
show
();
fingerprint
=
new
Fingerprint
({
canvas
:
true
}).
get
();
fingerprint
=
new
Fingerprint
({
canvas
:
true
}).
get
();
$
.
ajaxSetup
({
headers
:
{
"X-CSRFToken"
:
getCookie
(
'csrftoken'
)
}
});
$
.
ajaxSetup
({
headers
:
{
"X-CSRFToken"
:
getCookie
(
'csrftoken'
)
}
});
...
...
templates/orders/helper.html
View file @
20d68cbe
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<h2>
Ou, continuer une commande en cours de création
</h2>
<h2>
Ou, continuer une commande en cours de création
</h2>
<div
id=
"existing_orders"
></div>
<div
id=
"existing_orders"
></div>
</div>
</div>
<div
id=
"common_info_area"
>
<div
id=
"common_info_area"
style=
"display:none;"
>
<h2>
Informations
</h2>
<h2>
Informations
</h2>
<div
id=
"common_info_editor_container"
>
<div
id=
"common_info_editor_container"
>
<div
id=
"common_info_editor"
></div>
<div
id=
"common_info_editor"
></div>
...
...
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