Ignore:
Timestamp:
Sep 18, 2014, 12:22:53 PM (10 years ago)
Author:
JanisV
Message:

Replace picture page

File:
1 edited

Legend:

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

    r29593 r29615  
    5050            function (e, fotorama, extra) {
    5151              if (!fullscreen) {
     52                {/literal}{if isset($replace_picture)}{literal}
     53                history.replaceState(null, null, fotorama.activeFrame['url']);
     54                {/literal}{else}{literal}
    5255                history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
    5356                jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']);
     57                {/literal}{/if}{literal}
     58
    5459                jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']);
    5560                jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal});
     
    8590              });
    8691
     92              {/literal}{if isset($replace_picture)}{literal}
     93              history.replaceState(null, null, fotorama.activeFrame['url']);
     94              {/literal}{else}{literal}
    8795              history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
    8896              jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']);
     97              {/literal}{/if}{literal}
     98
    8999              jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']);
    90100              jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal});
Note: See TracChangeset for help on using the changeset viewer.