Merge pull request #8591 from hregis/7.0_bug6

FIX avoid focus problem when select2 is in a modal dialog window
This commit is contained in:
Laurent Destailleur 2018-04-13 22:22:24 +02:00 committed by GitHub
commit 235bf2a961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,7 +425,8 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $
},
escapeMarkup: function(markup) {
return markup;
}
},
dropdownCssClass: \'ui-dialog\'
})';
if ($forcefocus) $msg.= '.select2(\'focus\')';
$msg.= ';'."\n";