}
this.lowdef = false;
this.animations = new FluidbookLinksAnimations(fluidbook);
+ this.shortLinks = {};
+
this.init();
}
$this.fluidbook.links.triggerLinkById($this.fluidbook.settings.openLinkAtStartup);
}
});
+
+ this.getShortLinks();
+
},
updateAttachedLinks: function () {
if (!Modernizr.ftouch) {
container.perfectScrollbar('update');
}
- }
+ },
+
+ getShortLinks: function () {
+
+ let $this = this;
+ if (this.fluidbook.settings.specialShortLinks !== undefined && this.fluidbook.settings.specialShortLinks.length > 0) {
+ this.fluidbook.service.call('shortlinks', {
+ cid: this.fluidbook.settings.cid,
+ links: this.fluidbook.settings.specialShortLinks
+ }, function (data) {
+ $this.shortLinks = data;
+ }, null, 'post');
+ }
+ },
}