Changeset 80:8ec7b049a49c in documentViewer for zpt


Ignore:
Timestamp:
Oct 21, 2009, 4:41:50 PM (15 years ago)
Author:
casties
Branch:
default
Message:

fixed a problem with image_main when options/mk is not present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/image_main.zpt

    r76 r80  
    1 <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; mode python:options.get('viewMode','images')">
    2  <iframe tal:condition="python:mode=='images'" height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}&${options/mk}"/>
     1<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; mode python:options.get('viewMode','images'); mk python:options.get('mk','')">
     2 <iframe tal:condition="python:mode=='images'" height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}&$mk"/>
    33 <iframe tal:condition="python:mode=='text'" height="100%" width="100%" tal:attributes="src string:${here/textViewerUrl}fn=${docinfo/textURL}&pn=${pageinfo/current}&lang=${docinfo/lang}"/>
    44</tal:block>
Note: See TracChangeset for help on using the changeset viewer.