public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ganesh Jaybhay <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][RM#5047] Add tab navigation for tabs under explain panel in query tool
Date: Tue, 31 Dec 2019 15:08:49 +0530
Message-ID: <CAK6syAoYYh0iDNyF6sNintgYs6xC8joJ9sVE=wnjgc9RoFvUFw@mail.gmail.com> (raw)
Hi Hackers,
Please find the attached minor fix for tab navigation of graphical,
analysis and statistics tabs under explain panel in query tool.
Kindly review.
Regards,
Ganesh Jaybhay
Attachments:
[application/octet-stream] RM5047.patch (2.0K, 3-RM5047.patch)
download | inline diff:
diff --git a/web/pgadmin/misc/static/explain/js/explain.js b/web/pgadmin/misc/static/explain/js/explain.js
index c32d2d4..acf2844 100644
--- a/web/pgadmin/misc/static/explain/js/explain.js
+++ b/web/pgadmin/misc/static/explain/js/explain.js
@@ -1187,7 +1187,7 @@ define('pgadmin.misc.explain', [
return [
' <li class="nav-item" role="presentation">',
' <a class="nav-link ', _active ? 'active' : '', '"',
- ' data-toggle="tab" tabindex="-1"',
+ ' data-toggle="tab" tabindex="0"',
` data-tab-index="${_idx}"`,
' aria-selected="', _active ? 'true' : 'false', '"',
` role="tab" data-explain-role="${_type}"`,
@@ -1199,7 +1199,7 @@ define('pgadmin.misc.explain', [
},
createTabPanel = (_type, _active, _extraClasses) => {
return [
- ' <div role="tabpanel" tabindex="-1" class="tab-pane pg-el-sm-12',
+ ' <div role="tabpanel" tabindex="0" class="tab-pane pg-el-sm-12',
' pg-el-md-12 pg-el-lg-12 pg-el-12 fade collapse',
_active ? ' active show' : '', ` ${_extraClasses}"`,
` data-explain-tabpanel="${_type}"`,
diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
index 3e3554e..5e8b82a 100644
--- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
@@ -404,6 +404,12 @@ define('tools.querytool', [
self.query_tool_obj.focus();
});
+ pgBrowser.Events.on('pgadmin:query_tool:explain:focus', ()=>{
+ setTimeout(function () {
+ $('.sql-editor-explain .backform-tab .nav-link.active').focus();
+ }, 200);
+ });
+
if (!self.preferences.new_browser_tab) {
// Listen on the panel closed event and notify user to save modifications.
_.each(pgWindow.default.pgAdmin.Browser.docker.findPanels('frm_datagrid'), function(p) {
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin4][RM#5047] Add tab navigation for tabs under explain panel in query tool
In-Reply-To: <CAK6syAoYYh0iDNyF6sNintgYs6xC8joJ9sVE=wnjgc9RoFvUFw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox