fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11125] property: combine on javascript


From: Sigurd Nes
Subject: [Fmsystem-commits] [11125] property: combine on javascript
Date: Thu, 23 May 2013 11:23:31 +0000

Revision: 11125
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11125
Author:   sigurdne
Date:     2013-05-23 11:23:30 +0000 (Thu, 23 May 2013)
Log Message:
-----------
property: combine on javascript

Modified Paths:
--------------
    trunk/property/inc/class.uientity.inc.php
    trunk/property/inc/class.uigeneric.inc.php
    trunk/property/inc/class.uilocation.inc.php
    trunk/property/inc/class.uilookup.inc.php
    trunk/property/inc/class.uiproject.inc.php
    trunk/property/inc/class.uitts.inc.php
    trunk/property/inc/class.uiwo_hour.inc.php
    trunk/property/inc/class.uiworkorder.inc.php

Modified: trunk/property/inc/class.uientity.inc.php
===================================================================
--- trunk/property/inc/class.uientity.inc.php   2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uientity.inc.php   2013-05-23 11:23:30 UTC (rev 
11125)
@@ -1125,8 +1125,16 @@
                        }
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2178,9 +2186,17 @@
 
                        }
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
-                                       'property_js'                           
        => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
+                       (
+                               'property_js'                                   
=> json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
$property_js),
                                        'datatable'                             
                => $datavalues,
                                        'myColumnDefs'                          
        => $myColumnDefs,       
                                        'enable_bulk'                           
        => $category['enable_bulk'],
@@ -2624,23 +2640,30 @@
                        );                              
 
                        
//----------------------------------------------datatable settings--------      
                
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
-                                       'property_js'           => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
-                                       'base_java_url'         => 
json_encode(array(menuaction => "property.uientity.attrib_history")),
-                                       'datatable'                     => 
$datavalues,
-                                       'myColumnDefs'          => 
$myColumnDefs,
-
-                                       'allow_allrows'         => false,
-                                       'start_record'          => $this->start,
-                                       'record_limit'          => 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
-                                       'num_records'           => 
count($values),
-                                       'all_records'           => 
$this->bo->total_records,
-                                       'link_url'              => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
-                                       'img_path'              => 
$GLOBALS['phpgw']->common->get_image_path('phpgwapi','default'),
-                                       'values'                => $content,
-                                       'table_header'          => 
$table_header,
-                               );
+                       (
+                               'property_js'           => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js),
+                               'base_java_url'         => 
json_encode(array(menuaction => "property.uientity.attrib_history")),
+                               'datatable'                     => $datavalues,
+                               'myColumnDefs'          => $myColumnDefs,
+                               'allow_allrows'         => false,
+                               'start_record'          => $this->start,
+                               'record_limit'          => 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
+                               'num_records'           => count($values),
+                               'all_records'           => 
$this->bo->total_records,
+                               'link_url'                      => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
+                               'img_path'                      => 
$GLOBALS['phpgw']->common->get_image_path('phpgwapi','default'),
+                               'values'                        => $content,
+                               'table_header'          => $table_header,
+                       );
                        //---datatable settings--------------------
                        phpgwapi_yui::load_widget('dragdrop');
                        phpgwapi_yui::load_widget('datatable');

Modified: trunk/property/inc/class.uigeneric.inc.php
===================================================================
--- trunk/property/inc/class.uigeneric.inc.php  2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uigeneric.inc.php  2013-05-23 11:23:30 UTC (rev 
11125)
@@ -480,8 +480,16 @@
                        }
 
                        //path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];

Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uilocation.inc.php 2013-05-23 11:23:30 UTC (rev 
11125)
@@ -919,8 +919,16 @@
                        }
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1543,8 +1551,16 @@
                        }
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2945,8 +2961,16 @@
                        }
 
                        //path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];

Modified: trunk/property/inc/class.uilookup.inc.php
===================================================================
--- trunk/property/inc/class.uilookup.inc.php   2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uilookup.inc.php   2013-05-23 11:23:30 UTC (rev 
11125)
@@ -319,8 +319,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -585,8 +593,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -848,8 +864,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1152,8 +1176,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1375,8 +1407,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1587,8 +1627,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1799,8 +1847,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2158,8 +2214,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2404,8 +2468,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2613,8 +2685,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2823,8 +2903,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -3036,8 +3124,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -3248,8 +3344,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -3480,8 +3584,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];

Modified: trunk/property/inc/class.uiproject.inc.php
===================================================================
--- trunk/property/inc/class.uiproject.inc.php  2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uiproject.inc.php  2013-05-23 11:23:30 UTC (rev 
11125)
@@ -829,8 +829,16 @@
                                );
 
                        //path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -2140,8 +2148,17 @@
                        $selected_tab = phpgw::get_var('tab', 'string', 
'REQUEST', 'general');
                        $project_type_id = isset($values['project_type_id']) && 
$values['project_type_id'] ? $values['project_type_id'] : 
$GLOBALS['phpgw_info']['user']['preferences']['property']['default_project_type'];
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
+                       (
+                                       'property_js'                           
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js),
                                        'project_types'                         
                => array('options' => 
$this->bo->get_project_types($project_type_id)),
                                        'project_type_id'                       
                => $values['project_type_id'],
                                        'inherit_location'                      
                => $id ? $values['inherit_location'] : 1,
@@ -2153,7 +2170,6 @@
                                        'b_account_data'                        
                => $b_account_data,
                                        'ecodimb_data'                          
                => $ecodimb_data,
                                        'contact_data'                          
                => $contact_data,
-                                       'property_js'                           
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
                                        'datatable'                             
                        => $datavalues,
                                        'myColumnDefs'                          
                => $myColumnDefs,
                                        'myButtons'                             
                        => $myButtons,
@@ -2680,10 +2696,18 @@
                                $year++;
                        }
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
                        (
+                               'property_js'                   => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js),
                                'year_list'                             => 
array('options' => $year_list),
-                               'property_js'                   => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
                                'datatable'                             => 
$datavalues,
                                'myColumnDefs'                  => 
$myColumnDefs,
                                'done_action'                   => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
@@ -2866,13 +2890,21 @@
 
                        
//----------------------------------------------datatable settings--------
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
                        (
+                               'property_js'                                   
        => json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
$property_js),
                                'lookup_functions'                              
        => isset($values['lookup_functions'])?$values['lookup_functions']:'',
                                'b_account_data'                                
        => $b_account_data,
                                'ecodimb_data'                                  
        => $ecodimb_data,
                                'contact_data'                                  
        => $contact_data,
-                               'property_js'                                   
        => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
                                'datatable'                                     
                => $datavalues,
                                'myColumnDefs'                                  
        => $myColumnDefs,
                                'myButtons'                                     
                => $myButtons,

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uitts.inc.php      2013-05-23 11:23:30 UTC (rev 
11125)
@@ -1214,8 +1214,17 @@
                        }
 
                        //path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
 
+                       $property_js = "/property/js/yahoo/property.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -3114,6 +3123,15 @@
                        $cat_select     = 
$this->cats->formatted_xslt_list(array('select_name' => 
'values[cat_id]','selected' => $this->cat_id,'use_acl' => 
$this->_category_acl));
                        $this->cats->set_appname('property','.project');
                        $order_catetory = 
$this->cats->formatted_xslt_list(array('select_name' => 
'values[cat_id]','selected' => $ticket['order_cat_id']));
+
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
                                (
                                        'custom_attributes'                     
        => array('attributes' => $ticket['attributes']),
@@ -3141,7 +3159,7 @@
                                        'td_count'                              
                => '""',
                                        'base_java_url'                         
        => "{menuaction:'property.uitts.update_data',id:{$id}}",
                                        'base_java_notify_url'                  
=> 
"{menuaction:'property.notify.update_data',location_id:{$location_id},location_item_id:'{$id}'}",
-                                       'property_js'                           
        => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
+                                       'property_js'                           
        => json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
$property_js),
                                        'datatable'                             
                => $datavalues,
                                        'myColumnDefs'                          
        => $myColumnDefs,
                                        'myButtons'                             
                => $myButtons,

Modified: trunk/property/inc/class.uiwo_hour.inc.php
===================================================================
--- trunk/property/inc/class.uiwo_hour.inc.php  2013-05-22 20:20:09 UTC (rev 
11124)
+++ trunk/property/inc/class.uiwo_hour.inc.php  2013-05-23 11:23:30 UTC (rev 
11125)
@@ -208,9 +208,17 @@
                                );      
 
                        //------------------------------------datatable0 
settings------------------                             
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
-                                       'property_js'                           
=> 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
+                       (
+                                       'property_js'                           
=> json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
$property_js),
                                        'base_java_url'                         
=> json_encode(array(menuaction => "property.uiwo_hour.deviation")),
                                        'datatable'                             
        => $datavalues,
                                        'myColumnDefs'                          
=> $myColumnDefs,
@@ -223,7 +231,7 @@
                                        'add_action'                            
=> $GLOBALS['phpgw']->link('/index.php',$link_data),
                                        'lang_done'                             
        => lang('done'),
                                        'done_action'                           
=> $GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'property.uiwo_hour.index', 'workorder_id'=> $workorder_id))
-                               );
+                       );
 
                        //---datatable settings--------------------
                        phpgwapi_yui::load_widget('dragdrop');
@@ -598,9 +606,17 @@
                                )));    
                        
//----------------------------------------------datatable settings--------      
                
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
-                                       'property_js'                           
=> 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
+                       (
+                                       'property_js'                           
=> json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
$property_js),
                                        'base_java_url'                         
=> json_encode(array(menuaction => 
"property.uiwo_hour.index",workorder_id=>$workorder_id)),
                                        'datatable'                             
        => $datavalues,
                                        'myColumnDefs'                          
=> $myColumnDefs,
@@ -1046,8 +1062,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1733,9 +1757,17 @@
 
 
                        
//----------------------------------------------datatable settings--------      
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
-                               (
-                                       'property_js'                           
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
+                       (
+                                       'property_js'                           
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js),
                                        'datatable'                             
                        => $datavalues,
                                        'myColumnDefs'                          
                => $myColumnDefs,
 
@@ -2510,8 +2542,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -3033,8 +3073,16 @@
                        $datatable['valida'] = '';
 
                        // path for property.js
-                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];

Modified: trunk/property/inc/class.uiworkorder.inc.php
===================================================================
--- trunk/property/inc/class.uiworkorder.inc.php        2013-05-22 20:20:09 UTC 
(rev 11124)
+++ trunk/property/inc/class.uiworkorder.inc.php        2013-05-23 11:23:30 UTC 
(rev 11125)
@@ -740,8 +740,16 @@
                        }
 
                        // path for property.js
-                       $datatable['property_js'] =  
$GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property.js";
+                       $property_js = "/property/js/yahoo/property.js";
 
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
+                       $datatable['property_js'] = 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js;
+
                        // Pagination and sort values
                        $datatable['pagination']['records_start']       = 
(int)$this->bo->start;
                        $datatable['pagination']['records_limit']       = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
@@ -1971,8 +1979,17 @@
                        $sogeneric->get_location_info('periodization',false);
                        $periodization_data     = 
$sogeneric->read_single(array('id' => 
(int)$project['periodization_id']),array());
 
+                       $property_js = "/property/js/yahoo/property2.js";
+
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['no_jscombine']) || 
!$GLOBALS['phpgw_info']['server']['no_jscombine'])
+                       {
+                               $cachedir = 
urlencode($GLOBALS['phpgw_info']['server']['temp_dir']);
+                               $property_js = 
"/phpgwapi/inc/combine.php?cachedir={$cachedir}&type=javascript&files=" . 
str_replace('/', '--', ltrim($property_js,'/'));
+                       }
+
                        $data = array
                        (
+                               'property_js'                                   
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . $property_js),
                                'periodization_data'                            
        => $periodization_data,
                                'year_list'                                     
                        => array('options' => $year_list),
                                'mode'                                          
                        => $mode,
@@ -1982,7 +1999,6 @@
                                'lang_claim'                                    
                => lang('claim'),
                                'suppressmeter'                                 
                => isset($config->config_data['project_suppressmeter']) && 
$config->config_data['project_suppressmeter'] ? 1 : '',
                                'suppresscoordination'                          
        => $suppresscoordination,
-                               'property_js'                                   
                => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url']."/property/js/yahoo/property2.js"),
                                'datatable'                                     
                        => $datavalues,
                                'myColumnDefs'                                  
                => $myColumnDefs,
                                'myButtons'                                     
                        => $myButtons,




reply via email to

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