this.jumpToPageContainingLink = true;
var $this = this;
-
if (this.fluidbook.settings.phonegap === 'ios') {
$(document).on('touchstart touchend click', 'a.clickonly', function (e) {
var cancel = function (e) {
this.lowdef = this.fluidbook.support.android || this.fluidbook.support.iOS;
-
$(this.fluidbook).on('fluidbook.page.change.end', function () {
if ($this.lastTriggeredLinksPage == $this.fluidbook.currentPage) {
return;
});
});
-
$(document).on(this.fluidbook.input.clickEvent, '[data-id] a', function () {
var id = $(this).closest('[data-id]').attr('data-id');
$this.fluidbook.contentlock.addAction(id, 'click');
if (mode === 'exclusiveshow' || mode === 'shownext' || mode === 'shownextcycle' || mode === 'showprev' || mode === 'showprevcycle' || mode === 'pickrandom') {
var selector = 'div.link[data-hidden="1"].show';
+ var hide = [];
+ // Only hide links that are in the list
+ if ($(this).is('[data-showid]')) {
+ hide = $(this).data('showid').split(',');
+ } else {
+ hide = 'all';
+ }
$.each(showid, function (k, id) {
selector += ':not([data-id$="' + id + '"])';
});
if ($(selector).is('[data-animation-hide]')) {
timeout = 0;
}
- $this.hidePlacedLink(this, timeout);
+ var id = $(this).data('id');
+ if (hide === 'all' || hide.indexOf(id) >= 0) {
+ $this.hidePlacedLink(this, timeout);
+ }
});
}