mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Only disable chosen.js placeholder if no custom one exists
This commit is contained in:
parent
2abb021efb
commit
94d985e0c4
@ -367,7 +367,11 @@ jQuery.noConflict();
|
|||||||
onmatch: function() {
|
onmatch: function() {
|
||||||
if(this.is('.no-chzn')) return;
|
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();
|
this._super();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user