Changeset 366 for dev/mods/xajax

Show
Ignore:
Timestamp:
12/18/08 00:28:21 (13 years ago)
Author:
exi
Message:

Fixed apiuser to not enable xajax on all pages
Added a html tweak for opera on killsummarytables
Reworked ajcron::getNextRun(), it didnt work on values greater than 60 minutes
Now no xajax code is inserted when board is in IGB mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/xajax/init.php

    r365 r366  
    33// templates/index.tpl 
    44// you should not change anything in this file but the image generator / whatever bypass change the functions.php 
    5  
    65// bypass some of the image generators.. 
    76if ($page != "thumb" && $page != "mapview" && $page != "sig") 
    87{ 
    9         require_once('mods/xajax/xajax_core/xajax.inc.php'); 
     8    require_once('mods/xajax/xajax_core/xajax.inc.php'); 
    109    $xajax = new xajax(); 
    11         require_once('mods/xajax/functions.php'); 
     10    require_once('mods/xajax/functions.php'); 
    1211    event::register('page_assembleheader', 'mod_xajax::insertHTML'); 
    1312 
     
    2625 
    2726    // on page assembly look wether xajax is needed or not 
    28         function insertHTML($obj) 
     27    function insertHTML($obj) 
    2928    { 
    30             global $mod_xajax_enable; 
    31             if (!isset($mod_xajax_enable)) 
    32             { 
    33                 return; 
    34             } 
     29        global $mod_xajax_enable; 
     30        if (!isset($mod_xajax_enable)) 
     31        { 
     32            return; 
     33        } 
     34        if (IS_IGB) 
     35        { 
     36            return; 
     37        } 
    3538 
    36             global $xajax; 
     39        global $xajax; 
    3740        $obj->addBody($xajax->getJavascript("mods/xajax/")); 
    3841    }