Changeset 190


Ignore:
Timestamp:
03/04/2009 10:57:30 PM (3 years ago)
Author:
cirrus
Message:

Added fancyzoom.js for image viewing in the node pages (Thanks byteme).
Packed js files and stylesheet.

Location:
trunk
Files:
35 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/globals/functions.php

    r189 r190  
    372372                </style>'); 
    373373         
    374         $main->html->body->tags['onload'] = "gmap_onload()";     
     374        if(!$main->html->body->tags['onload']) { 
     375                $main->html->body->tags['onload']="gmap_onload();"; 
     376        } else { 
     377                $main->html->body->tags['onload'].="gmap_onload();"; 
     378        } 
    375379        $main->html->body->tags['onunload'] = "GUnload()"; //added to reduce IE memory leaks 
    376380        return TRUE; 
  • trunk/includes/pages/nodes/nodes_view.php

    r187 r190  
    274274                if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_'.$_POST['form_name'])) return call_user_func(array($this, 'output_onpost_'.$_POST['form_name'])); 
    275275                global $construct, $db, $vars, $main; 
     276                $main->html->head->add_script("text/javascript", "./templates/basic/scripts/javascripts/fancyzoom/js-global/FancyZoom_packed.js"); 
     277                $main->html->head->add_script("text/javascript", "./templates/basic/scripts/javascripts/fancyzoom/js-global/FancyZoomHTML_packed.js"); 
     278                $main->html->body->tags['onload']="setupZoom();"; 
    276279                if ($db->cnt('', 
    277280                                        'nodes ' . 
  • trunk/templates/basic/includes/html.tpl

    r95 r190  
    2424<head> 
    2525{$head} 
    26 <link href="{$css_dir}styles.css" rel="stylesheet" type="text/css" /> 
    27 <script type="text/javascript" src="{$js_dir}overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> 
     26<link href="{$css_dir}styles_packed.css" rel="stylesheet" type="text/css" /> 
     27<script type="text/javascript" src="{$js_dir}overlib/overlib_packed.js"><!-- overLIB (c) Erik Bosrup --></script> 
    2828</head> 
    2929<body{foreach from=$body_tags item=item key=key} {$key}="{$item}"{/foreach}> 
Note: See TracChangeset for help on using the changeset viewer.