Show
Ignore:
Timestamp:
15.09.2016 10:35:57 (3 years ago)
Author:
kjdon
Message:

need to add in getting the pref lang fragments so that we can use one in the themeswitcher js. this needs to come after setup-gs-variable. Also, themeswitcher only used on prefs page, so put it in an if statement.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r30775 r30807  
    7171        <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.min.js"><xsl:text> </xsl:text></script> 
    7272        <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.min.js"><xsl:text> </xsl:text></script> 
    73         <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.themeswitcher.min.js"><xsl:text> </xsl:text></script> 
    7473        <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.blockUI.js"><xsl:text> </xsl:text></script> 
    7574        <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script> 
     
    10099         
    101100        <xsl:call-template name="setup-gs-variable"/> 
     101        <xsl:if test="/page/pageRequest/@action ='p' and /page/pageRequest/@subaction='pref'"> 
     102          <script type="text/javascript"> 
     103            <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, 'pref')"/> 
     104          </script> 
     105          <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.themeswitcher.min.js"><xsl:text> </xsl:text></script> 
     106        </xsl:if> 
    102107        <xsl:call-template name="define-js-macro-variables"/> 
    103108