tiroir fichier session storage
This commit is contained in:
@@ -79,15 +79,32 @@ jQuery(document).ready(function($){
|
||||
|
||||
////////////// tiroir fichiers ///////
|
||||
|
||||
$(".profile--type--collaborateur").click(function(event) {
|
||||
// Ouvrir .tiroir fichiers
|
||||
$(".layout-sidebar-second").animate({translate:'90%'},350);
|
||||
});
|
||||
$("#block-reha-views-block-current-user-doc-profile-block-1 > h2").click(function(event) {
|
||||
// Ouvrir .tiroir fichiers
|
||||
$(".layout-sidebar-second").animate({translate:'0%'},350);
|
||||
});
|
||||
|
||||
// $(".profile--type--collaborateur").click(function(event) {
|
||||
// // Ouvrir .tiroir fichiers
|
||||
// $(".layout-sidebar-second").animate({translate:'90%'},350);
|
||||
// });
|
||||
// $("#block-reha-views-block-current-user-doc-profile-block-1 > h2").click(function(event) {
|
||||
// // Ouvrir .tiroir fichiers
|
||||
// $(".layout-sidebar-second").animate({translate:'0%'},350);
|
||||
// });
|
||||
$(document).ready(function() {
|
||||
// Vérifier l'état initial depuis sessionStorage
|
||||
if (sessionStorage.getItem('asideOpened') === 'true') {
|
||||
$(".layout-sidebar-second").addClass('open');
|
||||
}
|
||||
|
||||
$(".profile--type--collaborateur").click(function(event) {
|
||||
// Ouvrir .tiroir fichiers
|
||||
$(".layout-sidebar-second").addClass('open');
|
||||
sessionStorage.setItem('asideOpened', 'true');
|
||||
});
|
||||
|
||||
$("#block-reha-views-block-current-user-doc-profile-block-1 > h2").click(function(event) {
|
||||
// Fermer .tiroir fichiers
|
||||
$(".layout-sidebar-second").removeClass('open');
|
||||
sessionStorage.setItem('asideOpened', 'false');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user