Skip to content

Commit

Permalink
update iido javascript files
Browse files Browse the repository at this point in the history
content, filter and project
  • Loading branch information
pressi committed Jan 24, 2018
1 parent 3503e8c commit dd173a8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Resources/public/javascript/jquery/iido/IIDO.Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ IIDO.Content = IIDO.Content || {};

if ($(document.body).hasClass('ios') || $(document.body).hasClass('android') )
{
item.removeClass('animate-box');
$(item).removeClass('animate-box');
return true;
}
else
Expand Down
7 changes: 6 additions & 1 deletion Resources/public/javascript/jquery/iido/IIDO.Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ IIDO.Filter = IIDO.Filter || {};
filter.init = function()
{
var filterList = $(".ce_rsce_project_filter"),
filterContainer = $(".project-container-inside");
filterContainer = filterList.parent(".article-inside"); //$(".project-container-inside");

if( !filterList.length )
{
filterList = $('.filter-list');
}

if( filterList.length && filterList.hasClass("load-items-form-next-article") )
{
filterContainer = filterContainer.parent(".mod_article").next(".mod_article").find(".article-inside");
}

if( filterList.length && filterContainer )
{
// init Isotope
Expand Down
40 changes: 39 additions & 1 deletion Resources/public/javascript/jquery/iido/IIDO.Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,45 @@ IIDO.Project = IIDO.Project || {};

if( openType === "images" )
{
$.fancybox.open( IIDO.Project.getProjectImages(arrImagesOrUrlOrId) );
var options = {
buttons : ['close'],

infobar : true,
arrows : true,

btnTpl: {
arrowLeft : '<div class="arrow arrow-style1 arrow-left big fancybox-button--arrow_left" data-fancybox-prev>' +
'<div class="arrow-inside-container"></div></div>',
arrowRight : '<div class="arrow arrow-style1 arrow-right big fancybox-button--arrow_right" data-fancybox-next>' +
'<div class="arrow-inside-container"></div></div>'
},

afterLoad : function()
{
var headerLogo = $("header .logo").clone(),
clonedLogo = $(".cloned-logo");

if( !clonedLogo.length )
{
headerLogo.addClass("cloned-logo");

$( document.body ).append( headerLogo );
}
},

afterClose : function()
{
var clonedLogo = $(".cloned-logo");

if( clonedLogo.length )
{
clonedLogo.remove();
}
}
},
arrImages = IIDO.Project.getProjectImages(arrImagesOrUrlOrId);

$.fancybox.open( arrImages, options );
}
else if( openType === "details" )
{
Expand Down

0 comments on commit dd173a8

Please sign in to comment.