# R36536 - /trunk/etemplate/js/et2\_widget\_selectbox.js

**URL:** <https://help.egroupware.org/t/r36536-trunk-etemplate-js-et2-widget-selectbox-js/49313>\
**Category:** eGW-svn\
**Created:** [September 9, 2011, 3:47pm UTC](https://help.egroupware.org/t/r36536-trunk-etemplate-js-et2-widget-selectbox-js/49313 "2011-09-09T15:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathangray](https://help.egroupware.org/letter_avatar_proxy/v4/letter/n/77aa72/32.png) [@nathangray](https://help.egroupware.org/u/nathangray)\
**Post date:** [September 9, 2011, 3:47pm UTC](https://help.egroupware.org/t/r36536-trunk-etemplate-js-et2-widget-selectbox-js/49313/1 "2011-09-09T15:47:38Z")

</div>

Author: nathangray  
New Revision: 36536

URL: [http://svn.stylite.de/viewvc/egroupware?rev=36536&view=rev](http://svn.stylite.de/viewvc/egroupware?rev=36536&view=rev)  
Log:  
Get selectbox \_appendOptionElement working with empty\_label automatically

Modified:  
trunk/etemplate/js/et2\_widget\_selectbox.js

# Modified: trunk/etemplate/js/et2\_widget\_selectbox.js URL: [http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/js/et2\_widget\_selectbox.js?rev=36536&r1=36535&r2=36536&view=diff](http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/js/et2_widget_selectbox.js?rev=36536&r1=36535&r2=36536&view=diff)

— trunk/etemplate/js/et2\_widget\_selectbox.js (original)  
+++ trunk/etemplate/js/et2\_widget\_selectbox.js Fri Sep 9 17:47:38 2011  
@@ -95,6 +95,10 @@  
},

```
_appendOptionElement: function(_value, _label, _title) {

```

- 

```
  if(_value == "" && (_label == null || _label == "")) {

```

- 

```
  	_label = this.options.empty_label;

```

- 

```
  }

```

- 

```
  var option = $j(document.createElement("option"))
  	.attr("value", _value)
  	.text(_label);

```

## @@ -103,7 +107,6 @@ { option.attr(“title”, \_title); }

```
	option.appendTo(this.input);
},

```

* * *

Why Cloud-Based Security and Archiving Make Sense  
Osterman Research conducted this study that outlines how and why cloud  
computing security and archiving is rapidly being adopted across the IT  
space for its ease of implementation, lower cost, and increased  
reliability. Learn more. [http://www.accelacomm.com/jaw/sfnl/114/51425301/](http://www.accelacomm.com/jaw/sfnl/114/51425301/)

* * *

eGroupWare-cvs mailing list  
[eGroupWare-cvs@lists.sourceforge.net](mailto:eGroupWare-cvs@lists.sourceforge.net)  
[https://lists.sourceforge.net/lists/listinfo/egroupware-cvs](https://lists.sourceforge.net/lists/listinfo/egroupware-cvs)
