Fixed indentation of wc-enhanced-select.js

This commit is contained in:
Claudio Sanches 2017-08-22 15:43:08 -03:00
parent 6c2a944b74
commit 89a07a695e
1 changed files with 9 additions and 9 deletions

View File

@ -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 );
});