Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 94d985e0c468b67f8177592047311498ffd883d2 1 parent 2abb021
@chillu chillu authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/javascript/LeftAndMain.js
View
6 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.