Permalink
Browse files

MINOR Only disable chosen.js placeholder if no custom one exists

  • Loading branch information...
1 parent 2abb021 commit 94d985e0c468b67f8177592047311498ffd883d2 @chillu chillu committed Mar 5, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/javascript/LeftAndMain.js
@@ -367,7 +367,11 @@ jQuery.noConflict();
onmatch: function() {
if(this.is('.no-chzn')) return;
- this.data('placeholder', ' ').chosen().addClass("has-chzn");
+ // Explicitly disable default placeholder if no custom one is defined
+ if(!this.data('placeholder')) this.data('placeholder', ' ');
+
+ // Apply chosen
+ this.chosen().addClass("has-chzn");
this._super();
}

0 comments on commit 94d985e

Please sign in to comment.