Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledgebase-front
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Knowledge Base
knowledgebase-front
Commits
12199966
Commit
12199966
authored
5 years ago
by
Alice Poggioli
Browse files
Options
Downloads
Patches
Plain Diff
wIP : HELP.
parent
bb8c6687
No related branches found
Branches containing commit
No related tags found
1 merge request
!87
Feature/add dealt with buttin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scripts/coopstarter.js
+7
-11
7 additions, 11 deletions
src/scripts/coopstarter.js
with
7 additions
and
11 deletions
src/scripts/coopstarter.js
+
7
−
11
View file @
12199966
...
@@ -372,9 +372,9 @@ jQuery(document).ready(function($) {
...
@@ -372,9 +372,9 @@ jQuery(document).ready(function($) {
//MENTOR DASHBOARD*************************************************************
//MENTOR DASHBOARD*************************************************************
window
.
setTimeout
(()
=>
{
window
.
setTimeout
(()
=>
{
var
forms
=
document
.
querySelectorAll
(
"
sib-form
"
);
//
var forms = document.querySelectorAll("sib-form");
forms
.
forEach
(
form
=>
{
//
forms.forEach(form => {
form
.
addEventListener
(
"
populate
"
,
e
=>
{
//
form.addEventListener("populate", e => {
var
previewImage
=
document
.
querySelectorAll
(
var
previewImage
=
document
.
querySelectorAll
(
"
sib-form-file input[name='preview_image']+input
"
"
sib-form-file input[name='preview_image']+input
"
);
);
...
@@ -386,7 +386,7 @@ jQuery(document).ready(function($) {
...
@@ -386,7 +386,7 @@ jQuery(document).ready(function($) {
for
(
let
item
of
previewImage
)
{
for
(
let
item
of
previewImage
)
{
item
.
addEventListener
(
"
change
"
,
loadFile
);
item
.
addEventListener
(
"
change
"
,
loadFile
);
}
}
});
//
});
//Manage the accordion in request mentor dashboard.
//Manage the accordion in request mentor dashboard.
var
accRequest
=
document
.
querySelectorAll
(
var
accRequest
=
document
.
querySelectorAll
(
...
@@ -398,19 +398,15 @@ jQuery(document).ready(function($) {
...
@@ -398,19 +398,15 @@ jQuery(document).ready(function($) {
accRequest
[
i
].
addEventListener
(
"
click
"
,
function
()
{
accRequest
[
i
].
addEventListener
(
"
click
"
,
function
()
{
/* Toggle between adding and removing the "active" class,
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
to highlight the button that controls the panel */
//this.classList.toggle("active");
console
.
log
(
this
);
console
.
log
(
"
hello
"
);
if
(
this
.
classList
.
contains
(
"
active
"
)
==
true
)
{
if
(
this
.
classList
.
contains
(
"
active
"
)
==
true
)
{
this
.
classList
.
remove
(
"
active
"
);
this
.
classList
.
remove
(
"
active
"
);
//this.nextElementSibling.querySelector("sib-form + div").style.maxHeight = "0px";
}
else
{
}
else
{
this
.
classList
.
add
(
"
active
"
);
this
.
classList
.
add
(
"
active
"
);
}
}
/* Toggle between hiding and showing the active panel */
/* Toggle between hiding and showing the active panel */
var
panelRequest
=
this
.
nextElementSibling
;
var
panelRequest
=
this
.
nextElementSibling
;
if
(
!
this
.
classList
.
contain
(
"
active
"
))
{
if
(
!
this
.
classList
.
contain
s
(
"
active
"
))
{
panelRequest
.
style
.
maxHeight
=
null
;
panelRequest
.
style
.
maxHeight
=
null
;
refreshPagination
();
refreshPagination
();
...
@@ -442,8 +438,8 @@ jQuery(document).ready(function($) {
...
@@ -442,8 +438,8 @@ jQuery(document).ready(function($) {
})
})
);
);
});
});
}
//
}
}
)
;
};
},
3000
);
},
3000
);
//ENTREPRENEUR DASHBOARD*************************************************************
//ENTREPRENEUR DASHBOARD*************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment