Changeset 27343 for extensions/Fotorama/template/slideshow.tpl
- Timestamp:
- Feb 12, 2014, 4:41:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/template/slideshow.tpl
r27342 r27343 44 44 {footer_script require='jquery'}{literal} 45 45 var fullscreen = false; 46 jQuery().ready(function() { 46 jQuery().ready(function() { 47 47 jQuery('.fotorama') 48 48 // Listen to the events … … 71 71 .on('fotorama:fullscreenexit', 72 72 function (e, fotorama, extra) { 73 {/literal}{if $Fotorama['only_fullscreen']}{literal} 74 window.location.replace(fotorama.activeFrame['url']); 75 {/literal}{else}{literal} 76 73 77 fotorama.setOptions({ 74 78 nav: "{/literal}{$Fotorama['nav']}{literal}" … … 82 86 83 87 fullscreen = false; 88 {/literal}{/if}{literal} 84 89 } 85 90 ) 86 91 // Initialize fotorama manually 87 92 .fotorama(); 93 94 {/literal}{if $Fotorama['only_fullscreen']}{literal} 95 jQuery('.fotorama').data('fotorama').requestFullScreen(); 96 {/literal}{/if}{literal} 88 97 }); 89 98 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.