Permalink
Browse files

if pulldown on empty item then add placeholder class for styles

  • Loading branch information...
1 parent 065e764 commit f1e1d5ca84c62cd7f5d2fb64b5d1678bb3457f92 @jcarrig jcarrig committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/js/pulldown.js
View
2 src/js/pulldown.js
@@ -73,7 +73,7 @@
var item = this._menu.selectedItem;
var label = this._labelForItem(item);
this.button = new Backbone.UI.Button({
- className : 'pulldown_button',
+ className : item ? 'pulldown_button' : 'pulldown_button placeholder',
model : {label : this._labelForItem(item)},
content : 'label',
onClick : _.bind(this.showMenu, this)

0 comments on commit f1e1d5c

Please sign in to comment.