fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7015] BIM: testing local yui


From: Sigurd Nes
Subject: [Fmsystem-commits] [7015] BIM: testing local yui
Date: Wed, 16 Feb 2011 15:16:04 +0000

Revision: 7015
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7015
Author:   sigurdne
Date:     2011-02-16 15:16:04 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
BIM: testing local yui

Modified Paths:
--------------
    trunk/bim/inc/class.uibim.inc.php
    trunk/bim/inc/class.uibimitem.inc.php
    trunk/bim/js/yahoo/bim.modellist.js

Modified: trunk/bim/inc/class.uibim.inc.php
===================================================================
--- trunk/bim/inc/class.uibim.inc.php   2011-02-16 14:10:41 UTC (rev 7014)
+++ trunk/bim/inc/class.uibim.inc.php   2011-02-16 15:16:04 UTC (rev 7015)
@@ -197,6 +197,7 @@
                );
                $GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('modelData' 
=> $data));
                $this->setupBimCss();
+               $GLOBALS['phpgw']->js->validate_file( 'yui3', 'yui/yui-min', 
'phpgwapi' );
                // echo '<script type="text/javascript" 
src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js";></script>';
                $ble =  <<<HTML
         <script>YUI().use("event-delegate", function(Y) {

Modified: trunk/bim/inc/class.uibimitem.inc.php
===================================================================
--- trunk/bim/inc/class.uibimitem.inc.php       2011-02-16 14:10:41 UTC (rev 
7014)
+++ trunk/bim/inc/class.uibimitem.inc.php       2011-02-16 15:16:04 UTC (rev 
7015)
@@ -26,6 +26,7 @@
        );
        
        public function showItems() {
+               $GLOBALS['phpgw']->js->validate_file( 'yui3', 'yui/yui-min', 
'phpgwapi' );
                $GLOBALS['phpgw']->js->validate_file( 'yahoo', 'bim.modellist', 
'bim' );
                $modelId = phpgw::get_var("modelId");
                //$modelId = 3;
@@ -65,6 +66,7 @@
                        $GLOBALS['phpgw_info']['flags']['xslt_app'] = false;
                        $GLOBALS['phpgw']->common->phpgw_header(true);*/
                        
+               $GLOBALS['phpgw']->js->validate_file( 'yui3', 'yui/yui-min', 
'phpgwapi' );
                $GLOBALS['phpgw']->js->validate_file( 'yahoo', 'bim.modellist', 
'bim' );
                $modelGuid = phpgw::get_var("modelGuid");
                //$modelId = 3;

Modified: trunk/bim/js/yahoo/bim.modellist.js
===================================================================
--- trunk/bim/js/yahoo/bim.modellist.js 2011-02-16 14:10:41 UTC (rev 7014)
+++ trunk/bim/js/yahoo/bim.modellist.js 2011-02-16 15:16:04 UTC (rev 7015)
@@ -5,6 +5,28 @@
        script.type = 'text/javascript';
        head.appendChild(script)
 }
+
+
+
+//Does not work
+YUI({
+       lang: 'ko-KR,en-GB,zh-Hant-TW', // languages in order of preference
+       base: 'phpgwapi/js/yui3/', // the base path to the YUI install.  
Usually not needed because the default is the same base path as the yui.js 
include file
+       charset: 'utf-8', // specify a charset for inserted nodes, default is 
utf-8
+       loadOptional: true, // automatically load optional dependencies, 
default false
+       combine: true, // use the Yahoo! CDN combo service for YUI resources, 
default is true unless 'base' has been changed
+       filter: 'raw', // apply a filter to load the raw or debug version of 
YUI files
+       timeout: 10000, // specify the amount of time to wait for a node to 
finish loading before aborting
+       insertBefore: 'customstyles', // The insertion point for new nodes
+       // one or more external modules that can be loaded along side of YUI.  
This is the only pattern
+       // that was supported in 3.0.0 for declaring external modules.  3.1.0 
adds 'groups' support,
+       // which is an easier way to define a group of modules.  See below.
+
+}).use('dd', 'yui_flot', function(Y) {
+
+});
+
+
 // Load YUI3
 //include_yui3('http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js');
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]