Fixed indentation of wc-enhanced-select.js
This commit is contained in:
parent
6c2a944b74
commit
89a07a695e
|
@ -136,16 +136,16 @@ jQuery( function( $ ) {
|
|||
$( this ).on( 'change', function(){
|
||||
var $children = $( this ).children();
|
||||
$children.sort(function(a, b){
|
||||
var atext = a.text.toLowerCase();
|
||||
var btext = b.text.toLowerCase();
|
||||
var atext = a.text.toLowerCase();
|
||||
var btext = b.text.toLowerCase();
|
||||
|
||||
if (atext > btext) {
|
||||
return 1;
|
||||
}
|
||||
if (atext < btext) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
if ( atext > btext ) {
|
||||
return 1;
|
||||
}
|
||||
if ( atext < btext ) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
$( this ).html( $children );
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue