Skip to content

Commit

Permalink
Fixed #317 - Image Gallery: The buttons were not working. It was caus…
Browse files Browse the repository at this point in the history
…ed by the solution to #258.
  • Loading branch information
ignaciogros committed May 17, 2018
1 parent abc04c5 commit 28ba2db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exe/webui/scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ var $exe = {
// This might happen in some ePub readers
// See issue #258
var eXeGalleries = $('.GalleryIdevice');
if (lightboxLinks.length==0 && eXeGalleries.length>0) {
if (lightboxLinks.length==0 && eXeGalleries.length>0 && typeof(exe_editor_mode)=="undefined") {
// We execute this code only outside eXe or the Image Gallary edition will fail (see issue #317)
$('.exeImageGallery a').each(function(){
this.title += " ~ ["+this.href+"]";
this.href = "#";
Expand Down

0 comments on commit 28ba2db

Please sign in to comment.