fixed close modal btn hidden when scrolling
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
+1173
-40
File diff suppressed because it is too large
Load Diff
+2710
-1
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;
|
||||
|
||||
Reference in New Issue
Block a user