Skip to content
Snippets Groups Projects
Commit 2643c8c0 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Removing useless console logs

parent 7e3c5160
No related branches found
No related tags found
1 merge request!58Removing useless console logs
...@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment