// Only hide links that are in the list
if ($(this).is('[data-showid]')) {
hide = $(this).data('showid').split(',');
+ var maxZindex = 0;
+ $.each(hide, function (k, hideid) {
+ var e = $('[data-id="' + hideid + '"]');
+ var zIndex;
+ if ($(e).is('[data-zindex]')) {
+ zIndex = $(e).attr('data-zindex');
+ } else {
+ zIndex = $(e).css('z-index');
+ $(e).attr('data-zindex', zIndex);
+ }
+
+ maxZindex = Math.max(parseInt(zIndex), maxZindex);
+ });
} else {
hide = 'all';
}
selector += ':not([data-id$="' + id + '"])';
});
$(selector).each(function () {
- var timeout = (mode === 'shownext' || mode === 'shownextcycle') ? 500 : 0;
+ var timeout = (mode === 'shownext' || mode === 'shownextcycle' || mode === 'showprev' || mode === 'showprevcycle') ? 1000 : 0;
if ($(selector).is('[data-animation-hide]')) {
timeout = 0;
}
var id = $(this).data('id');
if (hide === 'all' || hide.indexOf(id) >= 0) {
+ if ($(this).is('[data-zindex]')) {
+ $(this).css('z-index', $(this).data('zindex'));
+ }
$this.hidePlacedLink(this, timeout);
}
});
$(l).removeClass('notinteractive');
$(l).find('img').css('pointer-events', 'none');
}
+
+ console.log(maxZindex);
+ if (maxZindex !== undefined) {
+ $(l).css('z-index', maxZindex + 1)
+ }
+
setTimeout(function () {
if ($(l).is('[data-animation-hide]') && !$(l).hasClass('show')) {
$this.animateContentLink($(l), true, true);