Author: nathangray
New Revision: 55791
URL: http://svn.stylite.de/viewvc/egroupware?rev=55791&view=rev
Log:
- Avoid changing content manager select options when reading from template tags
- More checking with namespaced select options to avoid grabbing all children of a parent namespace
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
— trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js Wed Apr 20 23:20:36 2016
@@ -425,6 +425,11 @@
// Read the option-tags
var options = et2_directChildrenByTagName(_node, "option");
-
if(options.length)
-
{
-
// Break reference to content manager, we don't want to add to it
-
this.options.select_options = jQuery.extend({},this.options.select_options);
-
}
var egw = this.egw();
for (var i = 0; i < options.length; i++)
{
@@ -916,6 +921,20 @@
if(content_options && typeof content_options[last] != ‘undefined’ && content_options[last] )
{
content_options = content_options[last];
-
}
-
else if (content_options)
-
{
-
// Check for real values
-
for(var key in content_options)
-
{
-
if(!(isNaN(key) && typeof content_options[key] === 'string' ||
-
!isNaN(key) && typeof content_options[key] === 'object' && typeof content_options[key]['value'] !== 'undefined'))
-
{
-
// Found a parent of some other namespace
-
content_options = undefined;
-
break;
-
}
-
}
}
}
}
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs