fixed close modal btn hidden when scrolling

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-12 22:19:29 +02:00
parent 741849397e
commit 9c6fe22012
10 changed files with 6679 additions and 137 deletions
@@ -1,2 +1,12 @@
void 0;if(edlp.redirect){void 0;window.localStorage.setItem('edlp_origin_path',edlp.sys_path.replace(/^\//,''));window.localStorage.setItem('edlp_origin_url',window.location.pathname);window.localStorage.setItem('edlp_origin_hash',window.location.hash);window.location.replace(window.location.origin);}else{void 0;}
console.log('EDLP THEME HISTORY.js');
// var edlp is provided by edlp_ajax.module file
if(edlp.redirect){
console.log('history redirect');
window.localStorage.setItem('edlp_origin_path', edlp.sys_path.replace(/^\//, ''));
window.localStorage.setItem('edlp_origin_url', window.location.pathname);
window.localStorage.setItem('edlp_origin_hash', window.location.hash);
// redirect to home
window.location.replace(window.location.origin);
}else{
console.log('history do not redirect');
}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -225,7 +225,7 @@
if(state.sys_path == "productions"){
initProductions();
}else{
addCloseBtnToCols();
addCloseModalBtnToCols();
}
initAjaxLinks();
@@ -254,13 +254,13 @@
}
};
function addCloseBtnToCols(){
function addCloseModalBtnToCols(){
$('.col', _$row).each(function(index, el) {
if($('span.close-col-btn', this).length)
return true;
$(this).children('.wrapper').append($('<span>')
$(this).append($('<span>')
.addClass('close-col-btn')
.on('click', function(e){
// check for theme attribute and emmit event
@@ -1079,7 +1079,7 @@
}
function initHome(){
addCloseBtnToCols();
addCloseModalBtnToCols();
// console.log('theme : initHome');
// console.log('theme : initProductions');
var $grid = $('.grid',_$row).masonry({
@@ -267,7 +267,7 @@ main[role="main"]{
pointer-events: all;
cursor: pointer;
position:absolute;
top:0; right:0;
top:0; right:16px;
padding:0!important; margin:0.5em;
display: block;
$s:10px;