🌍
English
Hi JanisV,
Slideshow is broken if I have a quote in my gallery title. It must be escaped.
$ svn diff template/slideshow.tpl Index: template/slideshow.tpl =================================================================== --- template/slideshow.tpl (revision 1767) +++ template/slideshow.tpl (working copy) @@ -53,7 +53,7 @@ jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']); jQuery('#slideshow .showtitle').text(fotorama.activeFrame['title']); jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal}); - document.title = fotorama.activeFrame['title'] + ' | {/literal}{$GALLERY_TITLE}{literal}'; + document.title = fotorama.activeFrame['title'] + ' | {/literal}{$GALLERY_TITLE|escape:javascript}{literal}'; } } ) @@ -82,7 +82,7 @@ jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']); jQuery('#slideshow .showtitle').text(fotorama.activeFrame['title']); jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal}); - document.title = fotorama.activeFrame['title'] + ' | {/literal}{$GALLERY_TITLE}{literal}'; + document.title = fotorama.activeFrame['title'] + ' | {/literal}{$GALLERY_TITLE|escape:javascript}{literal}'; fullscreen = false; {/literal}{/if}{literal}
Offline
Not receive this message at time, but fixed
Offline