|
@@ -225,7 +225,7 @@
|
|
if(state.sys_path == "productions"){
|
|
if(state.sys_path == "productions"){
|
|
initProductions();
|
|
initProductions();
|
|
}else{
|
|
}else{
|
|
- addCloseBtnToCols();
|
|
|
|
|
|
+ addCloseModalBtnToCols();
|
|
}
|
|
}
|
|
|
|
|
|
initAjaxLinks();
|
|
initAjaxLinks();
|
|
@@ -254,13 +254,13 @@
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- function addCloseBtnToCols(){
|
|
|
|
|
|
+ function addCloseModalBtnToCols(){
|
|
$('.col', _$row).each(function(index, el) {
|
|
$('.col', _$row).each(function(index, el) {
|
|
|
|
|
|
if($('span.close-col-btn', this).length)
|
|
if($('span.close-col-btn', this).length)
|
|
return true;
|
|
return true;
|
|
|
|
|
|
- $(this).children('.wrapper').append($('<span>')
|
|
|
|
|
|
+ $(this).append($('<span>')
|
|
.addClass('close-col-btn')
|
|
.addClass('close-col-btn')
|
|
.on('click', function(e){
|
|
.on('click', function(e){
|
|
// check for theme attribute and emmit event
|
|
// check for theme attribute and emmit event
|
|
@@ -1079,7 +1079,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function initHome(){
|
|
function initHome(){
|
|
- addCloseBtnToCols();
|
|
|
|
|
|
+ addCloseModalBtnToCols();
|
|
// console.log('theme : initHome');
|
|
// console.log('theme : initHome');
|
|
// console.log('theme : initProductions');
|
|
// console.log('theme : initProductions');
|
|
var $grid = $('.grid',_$row).masonry({
|
|
var $grid = $('.grid',_$row).masonry({
|