This commit is contained in:
nikitasinelnikov
2021-04-20 16:09:59 +03:00
parent 4c55053ca4
commit 1751676458
5 changed files with 17 additions and 10 deletions
+8 -6
View File
@@ -125,12 +125,14 @@ jQuery(document).ready(function() {
var $element = jQuery( e.currentTarget );
var $selected = $element.find(':selected');
$selected.each( function ( i, option ) {
if ( option.value === '' ) {
option.selected = false;
$element.trigger( 'change' );
}
});
if ( $selected.length > 1 ) {
$selected.each( function ( i, option ) {
if ( option.value === '' ) {
option.selected = false;
$element.trigger( 'change' );
}
});
}
}
if ( typeof( jQuery.fn.select2 ) === 'function' ) {
+1 -1
View File
File diff suppressed because one or more lines are too long