Author: ralfbecker
Date: Mon Apr 25 22:05:53 2016
New Revision: 55837
URL: http://svn.stylite.de/viewvc/egroupware?rev=55837&view=rev
Log:
removed not working typeof value == "array"
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=55837&r1=55836&r2=55837&view=diff
==============================================================================
--- trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js Mon Apr 25 22:05:53 2016
@@ -512,14 +512,7 @@
}
jQuery("option",this.input).prop("selected", false);
- if(typeof _value == "array")
- {
- for(var i = 0; i < _value.length; i++)
- {
- this.find_option(_value[i]).prop("selected", true);
- }
- }
- else if (typeof _value == "object")
+ if (typeof _value == "object")
{
for(var i in _value)
{
@@ -575,16 +568,10 @@
return jQuery("input[value='"+_value.replace(this._escape_value_replace, this._escape_value_with)+"']", this.multiOptions);
},
- set_multi_value: function(_value) {
+ set_multi_value: function(_value)
+ {
jQuery("input",this.multiOptions).prop("checked", false);
- if(typeof _value == "array")
- {
- for(var i = 0; i < _value.length; i++)
- {
- this.find_multi_option(_value[i]).prop("checked", true);
- }
- }
- else if (typeof _value == "object")
+ if (typeof _value == "object")
{
for(var i in _value)
{
@@ -814,7 +801,7 @@
else if (this.value === null && this.options.value)
{
// Null means it tried to set the value, and it got stripped by missing options
- this.set_value(this.options.value, true)
+ this.set_value(this.options.value, true);
}
},
------------------------------------------------------------------------------
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.