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
7dfb2bd9
Commit
7dfb2bd9
authored
Apr 04, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change modal click waiting
parent
574f0397
Pipeline
#2056
passed with stage
in 1 minute 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
manage_attached.js
members/static/js/admin/manage_attached.js
+5
-1
all_common.js
outils/static/js/all_common.js
+4
-1
No files found.
members/static/js/admin/manage_attached.js
View file @
7dfb2bd9
...
...
@@ -229,7 +229,9 @@ function confirmDeletion(childId) {
modalContent
=
modalContent
.
html
();
openModal
(
modalContent
,
()
=>
{
if
(
is_time_to
(
'delete_pair'
))
{
delete_pair
(
childId
)
closeModal
();
openModal
();
delete_pair
(
childId
)
}
},
'Valider'
,
false
);
}
...
...
@@ -394,6 +396,8 @@ $(document).ready(function() {
modalContent
=
modalContent
.
html
();
openModal
(
modalContent
,
()
=>
{
if
(
is_time_to
(
'create_pair'
))
{
closeModal
();
openModal
();
// Show gears
create_pair
(
payload
)
}
},
'Valider'
,
false
);
...
...
outils/static/js/all_common.js
View file @
7dfb2bd9
...
...
@@ -240,11 +240,14 @@ function openModal() {
// 4th argument: if set and false, validate button doesn't close the modal
if
(
typeof
(
arguments
[
3
])
==
"undefined"
||
arguments
[
3
]
!=
false
)
btn_ok
.
on
(
'click'
,
closeModal
);
else
/*
else {
btn_ok.on('click', function() {
$(this).addClass("loading");
$(this).removeClass("btn--success");
})
}
*/
btns
.
append
(
btn_ok
);
...
...
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