mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-10 08:04:36 -06:00
Close user language preference drop down when it loses focus. Fixes #2956
This commit is contained in:
parent
1dd1c10255
commit
90629da524
@ -91,16 +91,18 @@ define('pgadmin.preferences', [
|
||||
* Clear the existing html in the preferences content
|
||||
*/
|
||||
var content = $container.find('.preferences_content');
|
||||
content.empty();
|
||||
|
||||
/*
|
||||
* We should clean up the existing controls.
|
||||
*/
|
||||
if (controls) {
|
||||
_.each(controls, function(c) {
|
||||
if ('$sel' in c) {
|
||||
if (c.$sel.data('select2').isOpen()) c.$sel.data('select2').close();
|
||||
}
|
||||
c.remove();
|
||||
});
|
||||
}
|
||||
content.empty();
|
||||
controls = [];
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user