diff --git a/js/icon_select.js b/js/icon_select.js
index 059dd8f6e..264469bb4 100644
--- a/js/icon_select.js
+++ b/js/icon_select.js
@@ -20,14 +20,21 @@ $(function()
var me = this;
var sLabel = '';
var sIcon = '';
+ for(var i in this.options.items)
+ {
+ if(this.options.items[i].icon == '')
+ {
+ this.options.items[i].icon = GetAbsoluteUrlAppRoot()+'images/transparent_32_32.png';
+ }
+ }
if (this.options.items.length > 0)
{
sIcon = this.options.items[this.options.current_idx].icon;
sLabel = this.options.items[this.options.current_idx].label;
}
- this.oImg = $('');
+ this.oImg = $('
');
this.oLabel = $(''+sLabel+'');
- this.oButton = $('');
+ this.oButton = $('');
this.oButton.prepend(this.oLabel).prepend(this.oImg);
this.oButton.click(function(event, ui) { me._on_button_clicked(event, ui); });
this.element.after(this.oButton);
@@ -83,7 +90,7 @@ $(function()
var sMenu = '