Drop-down should be closed when click on any other toolbar button. Fixes #3858

This commit is contained in:
Akshay Joshi 2019-01-22 16:05:02 +05:30
parent cd311ca8a9
commit 3e7381414f
3 changed files with 7 additions and 6 deletions

View File

@ -26,6 +26,7 @@ Bug fixes
| `Bug #3838 <https://redmine.postgresql.org/issues/3838>`_ - Proper SQL should be generated when creating/changing column with custom type argument.
| `Bug #3840 <https://redmine.postgresql.org/issues/3840>`_ - Ensure that file format combo box value should be retained when hidden files checkbox is toggled.
| `Bug #3846 <https://redmine.postgresql.org/issues/3846>`_ - Proper SQL should be generated when create procedure with custom type arguments.
| `Bug #3858 <https://redmine.postgresql.org/issues/3858>`_ - Drop-down should be closed when click on any other toolbar button.
| `Bug #3871 <https://redmine.postgresql.org/issues/3871>`_ - Fixed alignment of tree arrow icons for Internet Explorer.
| `Bug #3891 <https://redmine.postgresql.org/issues/3891>`_ - Correct order of Save and Cancel button for json/jsonb editing.
| `Bug #3897 <https://redmine.postgresql.org/issues/3897>`_ - Data should be updated properly for FTS Configurations, FTS Dictionaries, FTS Parsers and FTS Templates.

View File

@ -211,7 +211,7 @@
</select>
</div>
<div class="btn-group dropdown mr-1" role="group" aria-label="">
<div class="btn-group mr-1" role="group" aria-label="">
<button id="btn-cancel-query" type="button" class="btn btn-sm btn-secondary"
title=""
accesskey=""
@ -262,25 +262,25 @@
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" id="btn-explain-verbose" href="#" class="noclose" tabindex="0">
<a class="dropdown-item" id="btn-explain-verbose" href="#" tabindex="0">
<i class="explain-verbose fa fa-check visibility-hidden" aria-hidden="true"></i>
<span> {{ _('Verbose') }} </span>
</a>
</li>
<li>
<a class="dropdown-item" id="btn-explain-costs" href="#" class="noclose" tabindex="0">
<a class="dropdown-item" id="btn-explain-costs" href="#" tabindex="0">
<i class="explain-costs fa fa-check visibility-hidden" aria-hidden="true"></i>
<span> {{ _('Costs') }} </span>
</a>
</li>
<li>
<a class="dropdown-item" id="btn-explain-buffers" href="#" class="noclose" tabindex="0">
<a class="dropdown-item" id="btn-explain-buffers" href="#" tabindex="0">
<i class="explain-buffers fa fa-check visibility-hidden" aria-hidden="true"></i>
<span> {{ _('Buffers') }} </span>
</a>
</li>
<li>
<a class="dropdown-item" id="btn-explain-timing" href="#" class="noclose" tabindex="0">
<a class="dropdown-item" id="btn-explain-timing" href="#" tabindex="0">
<i class="explain-timing fa fa-check visibility-hidden" aria-hidden="true"></i>
<span> {{ _('Timing') }} </span>
</a>

View File

@ -1316,7 +1316,7 @@ define('tools.querytool', [
_closeDropDown: function(ev) {
var target = ev && (ev.currentTarget || ev.target);
if (target) {
$(target).closest('.show').removeClass('show').find('.dropdown-backdrop').remove();
$(target).closest('.editor-toolbar').find('.show').removeClass('show');
}
},