|
From: <ken...@us...> - 2008-10-30 13:40:59
|
Revision: 820
http://andro.svn.sourceforge.net/andro/?rev=820&view=rev
Author: kendowns
Date: 2008-10-30 13:40:58 +0000 (Thu, 30 Oct 2008)
Log Message:
-----------
Two big things:
1) Styles are now loaded up on the PHP side so you can make calculations of the sizes of screen elements.
2) x6.js is loaded automatically for all x6 pages, no need to do it in specific pages, and x6.init() is called automatically as well.
Modified Paths:
--------------
trunk/andro/lib/index_hidden.php
Modified: trunk/andro/lib/index_hidden.php
===================================================================
--- trunk/andro/lib/index_hidden.php 2008-10-30 13:39:34 UTC (rev 819)
+++ trunk/andro/lib/index_hidden.php 2008-10-30 13:40:58 UTC (rev 820)
@@ -475,7 +475,7 @@
# for the current template and skin, allowing downstream
# code to determine how much space they have to work with
#
- $x6skin = arr($_COOKIE,'x6skin','');
+ $x6skin = arr($_COOKIE,'x6skin','win2k.gray.1024');
if($x6skin!='') {
$filename = fsDirTop()."generated/x6skin.$x6skin.ser.txt";
$serialized=file_get_contents($filename);
@@ -570,6 +570,13 @@
else {
$x6method = 'x6main';
}
+
+ # If we are loading a page, we need the x6 javascript
+ # and the first command in jqDocReady should be to
+ # initialize the objects so downstrem code can make
+ # them visible.
+ jsInclude('clib/x6.js');
+ jqDocReady('x6.init()');
}
}
@@ -603,6 +610,10 @@
echo json_encode_safe($GLOBALS['AG']['x4']);
}
else {
+ # Pass in the command to fade in and set focus
+ $fadeIn = "$('.fadein').fadeIn('slow',function() { x6.initFocus(); });";
+ jqDocReady($fadeIn);
+
# Don't need a form in x6 mode
vgaSet('NOFORM',true);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|