Author: ralfbecker
New Revision: 55407
URL: http://svn.stylite.de/viewvc/egroupware?rev=55407&view=rev
Log:
use (mobile) template specific url on client-side to load sub-templates
Modified:
trunk/etemplate/inc/class.etemplate_widget_template.inc.php
trunk/etemplate/js/et2_widget_template.js
— trunk/etemplate/inc/class.etemplate_widget_template.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate_widget_template.inc.php Wed Mar 16 12:27:49 2016
@@ -7,7 +7,7 @@
@@ -249,6 +249,20 @@
}
$params[0] = $old_cname;
}
+
- /**
-
- Fill type options in self::$request->sel_options to be used on the client
-
-
-
-
@param array $expand values for keys ‘c’, ‘row’, ‘c_’, ‘row_’, ‘cont’
- */
- public function beforeSendToClient($cname, array $expand=null)
- {
-
//error_log(__METHOD__."('$cname') this->id=$this->id, this->type=$this->type, this->attrs=".array2string($this->attrs));
-
$form_name = self::form_name($cname, $this->id, $expand);
-
-
self::setElementAttribute($form_name, 'url', self::rel2url($this->rel_path));
- }
}
/*
— trunk/etemplate/js/et2_widget_template.js (original)
+++ trunk/etemplate/js/et2_widget_template.js Wed Mar 16 12:27:49 2016
@@ -83,6 +83,14 @@
// Deferred object so we can load via AJAX
this.loading = jQuery.Deferred();
-
// run transformAttributes now, to get server-side modifications (url!)
-
if (_attrs.template)
-
{
-
this.id = _attrs.template;
-
this.transformAttributes(_attrs);
-
this.options = et2_cloneObject(_attrs);
-
_attrs = {};
-
}
if (this.id != "" || this.options.template)
{
var parts = (this.options.template || this.id).split('?');
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs