Ignore:
Timestamp:
Feb 12, 2014, 4:41:39 PM (10 years ago)
Author:
JanisV
Message:

New mode: only fullscreen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/slideshow.tpl

    r27342 r27343  
    4444{footer_script require='jquery'}{literal}
    4545  var fullscreen = false;
    46   jQuery().ready(function() { 
     46  jQuery().ready(function() {
    4747    jQuery('.fotorama')
    4848        // Listen to the events
     
    7171        .on('fotorama:fullscreenexit',
    7272            function (e, fotorama, extra) {
     73              {/literal}{if $Fotorama['only_fullscreen']}{literal}
     74              window.location.replace(fotorama.activeFrame['url']);
     75              {/literal}{else}{literal}
     76
    7377              fotorama.setOptions({
    7478                nav: "{/literal}{$Fotorama['nav']}{literal}"
     
    8286
    8387              fullscreen = false;
     88              {/literal}{/if}{literal}
    8489            }
    8590        )
    8691        // Initialize fotorama manually
    8792        .fotorama();
     93     
     94      {/literal}{if $Fotorama['only_fullscreen']}{literal}
     95      jQuery('.fotorama').data('fotorama').requestFullScreen();
     96      {/literal}{/if}{literal}
    8897  });
    8998{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.