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
@@ -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({