fixed close modal btn hidden when scrolling
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user