Skip to content
Snippets Groups Projects
Commit 293bb959 authored by Alice Poggioli's avatar Alice Poggioli
Browse files

Fix the bug on the pircture refresh.

parent 1af45d3d
No related branches found
No related tags found
1 merge request!95Test/fix on entrepreneur profil
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
//- input.ico_droite.ico_search //- input.ico_droite.ico_search
.dropdownWrapper .dropdownWrapper
sib-display#user-account-picture.dropdownLabel( sib-display#entrepreneur-account-picture.dropdownLabel(
bind-user bind-user
fields='account.picture', fields='account.picture',
widget-account.picture='cs-account-picture' widget-account.picture='cs-account-picture'
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
//- input.ico_droite.ico_search //- input.ico_droite.ico_search
.dropdownWrapper .dropdownWrapper
sib-display#user-account-picture.dropdownLabel( sib-display#mentor-account-picture.dropdownLabel(
bind-user bind-user
fields='account.picture', fields='account.picture',
widget-account.picture='cs-account-picture' widget-account.picture='cs-account-picture'
......
...@@ -513,20 +513,24 @@ jQuery(document).ready(function($) { ...@@ -513,20 +513,24 @@ jQuery(document).ready(function($) {
refreshList("improvement-dialog-form", "pending-resources"); refreshList("improvement-dialog-form", "pending-resources");
refreshList("entrepreneur_profile_creation", "entrepreneur_info"); refreshList("entrepreneur_profile_creation", "entrepreneur_info");
refreshList("entrepreneur_profile_creation", "entrepreneur_contact"); refreshList("entrepreneur_profile_creation", "entrepreneur_contact");
refreshList("entrepreneur_profile_creation", "user-account-picture"); refreshList("entrepreneur_profile_creation", "entrepreneur-account-picture");
refreshList("mentor_profile_creation", "mentor_info"); refreshList("mentor_profile_creation", "mentor_info");
refreshList("mentor_profile_creation", "mentor_complementary"); refreshList("mentor_profile_creation", "mentor_complementary");
refreshList("mentor_profile_creation", "mentor_contact"); refreshList("mentor_profile_creation", "mentor_contact");
refreshList("mentor_profile_creation", "user-account-picture"); refreshList("mentor_profile_creation", "mentor-account-picture");
refreshList("entrepreneur_profile_edition", "entrepreneur_info"); refreshList("entrepreneur_profile_edition", "entrepreneur_info");
refreshList("entrepreneur_profile_edition", "entrepreneur_contact"); refreshList("entrepreneur_profile_edition", "entrepreneur_contact");
refreshList("entrepreneur_profile_edition", "user-account-picture"); refreshList("entrepreneur_profile_edition", "entrepreneur-account-picture");
refreshList("mentor_profile_edition", "mentor_info"); refreshList("mentor_profile_edition", "mentor_info");
refreshList("mentor_profile_edition", "mentor_complementary"); refreshList("mentor_profile_edition", "mentor_complementary");
refreshList("mentor_profile_edition", "mentor_contact"); refreshList("mentor_profile_edition", "mentor_contact");
refreshList("mentor_profile_edition", "user-account-picture"); refreshList("mentor_profile_edition", "mentor-account-picture");
refreshList("change_status_request", "request-list"); refreshList("change_status_request", "request-list");
addProperFilterToSearchComponents("entrepreneur-resource-list");
addProperFilterToSearchComponents("mentor-database");
addProperFilterToSearchComponents("public-resource-list");
var header_dropdown = $(".dropdownWrapper"), var header_dropdown = $(".dropdownWrapper"),
drop_choices = header_dropdown.find(".dropdownLabel"); drop_choices = header_dropdown.find(".dropdownLabel");
...@@ -611,11 +615,14 @@ jQuery(document).ready(function($) { ...@@ -611,11 +615,14 @@ jQuery(document).ready(function($) {
//Correct the native default of pagination //Correct the native default of pagination
refreshPagination(); refreshPagination();
}, 3000);
//In the entrepreneur dashboard, we set data from the display form to the hidden ones. var forms = baseElement.querySelectorAll(".resource_by_step");
addProperFilterToSearchComponents("entrepreneur-resource-list"); forms.forEach(form => {
addProperFilterToSearchComponents("mentor-database"); form.addEventListener("populate", e => {
addProperFilterToSearchComponents("public-resource-list"); let tab = document.getElementById("type1");
selectHiddenManagementForType(tab, form);
})
})
}, 3000);
}); });
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