Changeset 2479

Show
Ignore:
Timestamp:
09/11/06 08:47:39 (5 months ago)
Author:
demian
Message:

Added abilility to set a global Javascript onload expression

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.6-bugfix/CHANGELOG.txt

    r2477 r2479  
    2828 
    2929IMPROVEMENTS 
     3011-09-06    Added abilility to set a global Javascript onload expression 
     31            see Admin -> General -> Configuration 
    303210-09-06    Moved tableAlias.ini files into data folder (Steven Stremciuc) 
    313309-09-06    Add abililty to include a debug block in development rebuilds 
  • branches/0.6-bugfix/etc/default.conf.dist.ini

    r2475 r2479  
    3838defaultTheme            = default 
    3939filterChain             = 
     40globalJavascriptOnload  = 
    4041 
    4142[path] 
  • branches/0.6-bugfix/lib/SGL/Output.php

    r2459 r2479  
    535535    function getAllOnLoadEvents() 
    536536    { 
     537        $c = & SGL_Config::singleton(); 
     538        $conf = $c->getAll(); 
     539 
     540        if (!empty($conf['site']['globalJavascriptOnload'])) { 
     541            $this->aOnLoadEvents[] = $conf['site']['globalJavascriptOnload']; 
     542        } 
    537543        if (count($this->aOnLoadEvents)) { 
    538544            return implode(';', $this->aOnLoadEvents); 
  • branches/0.6-bugfix/modules/default/lang/english-iso-8859-15.php

    r2467 r2479  
    330330        'The Smarty template hooks have not been implemented yet' => 'The Smarty template hooks have not been implemented yet', 
    331331        'This query is used to set the default character set for the current connection (MySQL 4.1 or higher). For example: SET NAMES utf8' => 'This query is used to set the default character set for the current connection (MySQL 4.1 or higher). For example: SET NAMES utf8', 
     332        'Global Javascript Onload' => 'Global Javascript Onload', 
     333        'globalJavascript' => 'If you want a Javascript onload expression called on every page of your site, put it here', 
    332334 
    333335/* 
  • branches/0.6-bugfix/modules/default/templates/admin_configEdit.html

    r2467 r2479  
    166166                <input type="text" class="longText" name="conf[site][alert]" id="conf[site][alert]" value="{conf[site][alert]}" /> 
    167167            </p> 
     168            <p> 
     169                <label class="tipOwner" for="conf[site][globalJavascriptOnload]">{translate(#Global Javascript Onload#)} 
     170                <span  class="tipText">{translate(#globalJavascript#)}</span> 
     171                </label> 
     172                <input type="text" class="longText" name="conf[site][globalJavascriptOnload]" id="conf[site][globalJavascriptOnload]" value="{conf[site][globalJavascriptOnload]}" /> 
     173            </p> 
     174 
    168175 
    169176            <h3 class="show">{translate(#Paths#)}</h3> 
  • branches/0.6-bugfix/www/themes/default/css/event.php

    r2425 r2479  
    579579    } 
    580580 
    581     #select_dates{display: inline-block;} 
     581    #select_dates{ 
     582        display: inline-block; 
     583    } 
    582584    /* Hides from IE Mac \*/ 
    583585    * html #select_dates {height: 1%;} 
    584     #select_dates{display:block;} 
     586    #select_dates{ 
     587        display: block; 
     588    } 
    585589    /* End Hack */ 
    586590