From: Vincent Vanwaelscappel Date: Mon, 29 Jun 2020 18:53:37 +0000 (+0200) Subject: fix #3698 @6 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b95ae284ccd2ee8a0f177876208168cdc390e59e;p=fluidbook-html5.git fix #3698 @6 --- diff --git a/_seo.html b/_seo.html index f7fc9e88..e6e8ce3d 100644 --- a/_seo.html +++ b/_seo.html @@ -16,7 +16,7 @@ $content diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 4d4acd06..bfce9abb 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -38,6 +38,7 @@ FluidbookMenu.prototype = { }, _openView: function (view, param1, param2, callback) { + console.log(view,param1,param2); var $this = this; var preload = { index: 'thumbnails', diff --git a/js/libs/fluidbook/fluidbook.share.js b/js/libs/fluidbook/fluidbook.share.js index 627c18dc..72adac6f 100644 --- a/js/libs/fluidbook/fluidbook.share.js +++ b/js/libs/fluidbook/fluidbook.share.js @@ -73,6 +73,7 @@ FluidbookShare.prototype = { if (url == undefined || url == 'undefined' || url == null || url == false) { url = ''; } + url=url.toString(); if (url == '') { var res = false; if (this.fluidbook.support.offline || this.fluidbook.settings.phonegap) { @@ -157,11 +158,26 @@ FluidbookShare.prototype = { return body; }, - getSEOArticle: function (title) { - if (title.indexOf('article:') === 0) { - title = title.substr(8); + getSEOArticle: function (id) { + id = id.toString(); + if (id.indexOf('article:') === 0) { + id = id.substr(8); + } + + if (this.fluidbook.settings.seoArticles[id] !== undefined) { + return this.fluidbook.settings.seoArticles[id]; + } + var found = false; + + $.each(this.fluidbook.settings.seoArticles, function (k, v) { + if (v.id.toString() === id) { + found = v; + return false; + } + }); + if (found !== false) { + return found; } - return this.fluidbook.settings.seoArticles[title]; }, getShareLinks: function (hideLabels, url, context) {