Author: ralfbecker
Date: Mon Apr 25 10:26:44 2016
New Revision: 55820
URL: http://svn.stylite.de/viewvc/egroupware?rev=55820&view=rev
Log:
keep an array for options, do not convert them to an object
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
Modified: trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js?rev=55820&r1=55819&r2=55820&view=diff
==============================================================================
--- trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js Mon Apr 25 10:26:44 2016
@@ -428,19 +428,20 @@
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);
+ this.options.select_options = jQuery.extend([], this.options.select_options);
}
var egw = this.egw();
for (var i = 0; i < options.length; i++)
{
- this.options.select_options[et2_readAttrWithDefault(options[i], "value", options[i].textContent)] = {
+ this.options.select_options.push({
+ value: et2_readAttrWithDefault(options[i], "value", options[i].textContent),
// allow options to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
"label": options[i].textContent.replace(/{([^}]+)}/g, function(str,p1)
{
return egw.lang(p1);
}),
"title": et2_readAttrWithDefault(options[i], "title", "")
- };
+ });
}
this.set_select_options(this.options.select_options);
------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.