Changeset 31752

Show
Ignore:
Timestamp:
26.06.2017 14:34:54 (5 months ago)
Author:
kjdon
Message:

keep_editing_controls_visible is only defined when we are editing, so wrap in a test for that.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r31749 r31752  
    318318            <xsl:text> </xsl:text> 
    319319            </div> 
    320             <script type="text/javascript">  
     320                    <xsl:if test="$canDoEditing = 'true'"> 
     321              <script type="text/javascript">  
    321322              if (keep_editing_controls_visible) { 
    322323              $(function() { 
     
    325326              } 
    326327            </script>    
     328            </xsl:if> 
    327329        </xsl:if> 
    328330