Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
22f0e658
Commit
22f0e658
authored
Dec 15, 2020
by
MOREAU Ulysse
Browse files
Merge branch 'fix-edit-before-payment' into 'master'
Fix edit before payment See merge request
!55
parents
4969c84a
c8a59dcf
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
boutique/static/boutique/js/order_edit.js
View file @
22f0e658
...
...
@@ -45,7 +45,8 @@ window.addEventListener("load", function (e) {
initChangeDetection
(
document
.
orderedit
);
var
edit_button
=
document
.
getElementById
(
"
edit_button
"
),
payment_button
=
document
.
getElementById
(
"
payment_button
"
);
payment_button
=
document
.
getElementById
(
"
payment_button
"
),
payment_href
=
payment_button
.
getAttribute
(
"
href
"
);
function
checkChanges
(
e
){
...
...
@@ -53,11 +54,13 @@ window.addEventListener("load", function (e) {
{
edit_button
.
style
.
display
=
"
block
"
;
payment_button
.
classList
.
toggle
(
"
disabled
"
,
true
);
payment_button
.
setAttribute
(
"
href
"
,
"
#
"
);
}
else
{
edit_button
.
style
.
display
=
"
none
"
;
payment_button
.
classList
.
toggle
(
"
disabled
"
,
false
);
payment_button
.
setAttribute
(
"
href
"
,
payment_href
);
}
}
...
...
static/css/base.css
View file @
22f0e658
This diff is collapsed.
Click to expand it.
static/css/base.css.map
View file @
22f0e658
This diff is collapsed.
Click to expand it.
static/sass/base.sass
View file @
22f0e658
...
...
@@ -5,6 +5,7 @@ $nav-bg: #EEE
$nav-fg
:
black
$blue
:
#6BD
$orange
:
#df8a11
$disabledorange
:
#c7b293
$yellow
:
#FCCD76
$red
:
#e55
$light-red
:
#e99
...
...
@@ -66,6 +67,10 @@ nav > ul
body
flex-flow
:
column
.disabled
cursor
:
not
-
allowed
!
important
background-color
:
$disabledorange
!
important
@import
"forms"
@import
"tables"
@import
"classes"
...
...
Write
Preview
Supports
Markdown
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