Ignore:
Timestamp:
2011-03-02T15:36:10+13:00 (13 years ago)
Author:
davidb
Message:

Including gsajaxapi.js and initializing the JS variable 'gsapi' now done as standard (rather than optionally done if seaweed or talkback is activated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/style.dm

    r23519 r23748  
    229229# imagescript only used in nav_ns4.dm
    230230_globalscripts_{
    231 _If_("_activateweb20_" eq "2",
    232231  <script type="text/javascript" src="_httpscript_/gsajaxapi.js"></script>
     232
     233  <script language="javascript" type="text/javascript">
     234    function gsdefined(val)
     235    \{
     236       return (typeof(val) != "undefined");
     237    \}
     238
     239    var gsapi = new GSAjaxAPI("_gwcgi_","_cgiargc_");
     240  </script>
     241
     242_If_("_activateweb20_" eq "2",
    233243  _If_("_activateseaweed_" eq "1",_seaweedscript_)
    234244  _If_("_activatetalkback_" eq "1",_talkbackscript_)
Note: See TracChangeset for help on using the changeset viewer.