window.location.hash = '#' + this.currentPage;
this.clearLinksAndRulers();
this.loader.loadPage(this.currentPage, 'left');
- if (!this.single) {
+ if (!this.single && !isSpecial) {
this.loader.loadPage(this.currentPage + 1, 'right');
}
$("#linkeditor-page-field input").val(this.currentNumericPage);
openImageLink: function () {
- let selection = $(".link.selected");
+ let selection = $(".link.selected").eq(0);
if (undefined === CAN_CONTAIN_LINKS[parseInt($(selection).attr('fb-type'))] || selection.length !== 1) {
this.linkeditor.notification(TRANSLATIONS.error_open_image_link, 'warning');
return;
getSpecialPageAssetURL(page) {
if (page.toString().indexOf('link_') === 0) {
- return ASSETS[this.getLinkImageId(page)]['url'];
+ let asset = this.getLinkImageId(page);
+ return ASSETS[asset]['url'];
} else {
return THEME[page]['url'];
}