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
2643c8c0
Commit
2643c8c0
authored
5 years ago
by
Benoit Alessandroni
Browse files
Options
Downloads
Patches
Plain Diff
Removing useless console logs
parent
7e3c5160
No related branches found
No related tags found
1 merge request
!58
Removing useless console logs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scripts/coopstarter.js
+10
-13
10 additions, 13 deletions
src/scripts/coopstarter.js
with
10 additions
and
13 deletions
src/scripts/coopstarter.js
+
10
−
13
View file @
2643c8c0
...
@@ -129,7 +129,7 @@ function selectHiddenManagementForType(tab, form) {
...
@@ -129,7 +129,7 @@ function selectHiddenManagementForType(tab, form) {
jQuery
(
document
).
ready
(
function
(
$
)
{
jQuery
(
document
).
ready
(
function
(
$
)
{
//Refresh pagination
//Refresh pagination
refreshPagination
();
refreshPagination
();
console
.
log
(
'
toto
'
);
// Get the element with id="defaultOpen" and click on it
// Get the element with id="defaultOpen" and click on it
document
.
getElementById
(
"
defaultOpen
"
).
click
();
document
.
getElementById
(
"
defaultOpen
"
).
click
();
...
@@ -170,15 +170,12 @@ jQuery(document).ready(function($) {
...
@@ -170,15 +170,12 @@ jQuery(document).ready(function($) {
//MENTOR DASHBOARD*************************************************************
//MENTOR DASHBOARD*************************************************************
window
.
setTimeout
(()
=>
{
window
.
setTimeout
(()
=>
{
//Manage the accordion in request mentor dashboard.
//Manage the accordion in request mentor dashboard.
var
accRequest
=
document
.
querySelectorAll
(
var
accRequest
=
document
.
querySelectorAll
(
"
#requests accordion-request-resource
"
"
#requests accordion-request-resource
"
);
);
console
.
log
(
accRequest
);
var
i
;
for
(
i
=
0
;
i
<
accRequest
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
accRequest
.
length
;
i
++
)
{
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 */
...
@@ -250,13 +247,14 @@ jQuery(document).ready(function($) {
...
@@ -250,13 +247,14 @@ jQuery(document).ready(function($) {
//SEARCH IN DATABASE INSTANCE ONLY
//SEARCH IN DATABASE INSTANCE ONLY
let
instance_only
=
document
.
getElementById
(
"
instance_database_only
"
);
let
instance_only
=
document
.
getElementById
(
"
instance_database_only
"
);
let
checkbox_instance_only
=
instance_only
.
querySelector
(
"
input
"
);
let
checkbox_instance_only
=
instance_only
.
querySelector
(
"
input
"
);
if
(
checkbox_instance_only
)
{
checkbox_instance_only
.
onclick
=
function
()
{
checkbox_instance_only
.
onclick
=
function
()
{
if
(
this
.
checked
)
{
if
(
this
.
checked
)
{
//We have to retrieve all data-scr needed to make them pointed only on the instance.
//We have to retrieve all data-scr needed to make them pointed only on the instance.
//How to?
//How to?
}
}
};
};
}
//MORE CRITERIAS
//MORE CRITERIAS
const
more_criterias_form
=
document
.
getElementById
(
"
more_criterias
"
);
const
more_criterias_form
=
document
.
getElementById
(
"
more_criterias
"
);
...
@@ -289,7 +287,6 @@ jQuery(document).ready(function($) {
...
@@ -289,7 +287,6 @@ jQuery(document).ready(function($) {
//Manage fake tabs for type
//Manage fake tabs for type
let
tabs
=
document
.
getElementsByClassName
(
"
filter_by_type
"
);
let
tabs
=
document
.
getElementsByClassName
(
"
filter_by_type
"
);
for
(
let
tab
of
tabs
)
{
for
(
let
tab
of
tabs
)
{
tab
.
addEventListener
(
tab
.
addEventListener
(
"
click
"
,
"
click
"
,
...
...
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