Permalink
Browse files

only initialize tags if there are any..

  • Loading branch information...
1 parent 22f7ad0 commit dc95d38b9c29fbd921fea89fc4aa89e75158365a @jomz committed May 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/javascripts/admin/protomultiselect.js
@@ -262,7 +262,8 @@ var FacebookList = Class.create(TextboxList, {
children.each(function(el) { this.add({value:el.readAttribute('value'),caption:el.innerHTML}); }, this);
$F(this.element).split(this.options.get('separator')).each(function(item) {
- this.add({value:item,caption:item});
+ if (item != "")
+ this.add({value:item,caption:item});
}, this)
// Loading the options list only once at initialize.

0 comments on commit dc95d38

Please sign in to comment.