summaryrefslogtreecommitdiff
path: root/edit_structure.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-11-08 21:59:35 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-11-08 21:59:35 +0000
commit193a95e53fdb73465cc6092b445a11c31dbf7ab0 (patch)
tree8f337e83ba98cac449c199810fb8399e0648838c /edit_structure.php
parentb64980e5409101fd68882669b41d217d888e7b94 (diff)
downloadpigeonholes-193a95e53fdb73465cc6092b445a11c31dbf7ab0.tar.gz
pigeonholes-193a95e53fdb73465cc6092b445a11c31dbf7ab0.tar.bz2
pigeonholes-193a95e53fdb73465cc6092b445a11c31dbf7ab0.zip
massive update to javascript and css file loading. main aim is to reduce the number of HTTP requests to speed up page loading times. speedup should be quite prominent in our favoutire browser.
to load javascirpt files use: $gBitThemes->loadJavascript( '/full/path/to/javascript/file.js', <boolean: compress javascript> ); to load css files use: $gBitThemes->loadCss( '/full/path/to/javascript/file.css' ); if you have a relative path in your css file such as 'background-image: url( images/foo.png );', this method of loading will not work.
Diffstat (limited to 'edit_structure.php')
-rw-r--r--edit_structure.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/edit_structure.php b/edit_structure.php
index a458c52..b693c53 100644
--- a/edit_structure.php
+++ b/edit_structure.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_structure.php,v 1.3 2006/04/11 13:07:41 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_structure.php,v 1.4 2007/11/08 21:59:35 squareing Exp $
*
* Copyright ( c ) 2004 bitweaver.org
* Copyright ( c ) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: edit_structure.php,v 1.3 2006/04/11 13:07:41 squareing Exp $
+ * $Id: edit_structure.php,v 1.4 2007/11/08 21:59:35 squareing Exp $
* @package pigeonholes
* @subpackage functions
*/
@@ -21,7 +21,13 @@ require_once( '../bit_setup_inc.php' );
$gBitSystem->verifyPackage( 'pigeonholes' );
$gBitSystem->verifyPermission( 'p_pigeonholes_edit' );
-$gBitSmarty->assign( 'loadDynamicTree', TRUE );
+// we need to load some javascript and css for this page
+$gBitThemes->loadCss( UTIL_PKG_PATH.'javascript/libs/mygosu/DynamicTree.css' );
+if( $gSniffer->_browser_info['browser'] == 'ie' && $gSniffer->_browser_info['maj_ver'] == 5 ) {
+ $gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/libs/mygosu/ie5.js' );
+}
+$gBitThemes->loadJavascript( UTIL_PKG_PATH.'javascript/libs/mygosu/DynamicTreeBuilder.js' );
+
include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' );
$verifyStructurePermission = 'p_pigeonholes_edit';