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