From f1a18749f65599186a36395d37408a6aed29dcd2 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 17 Dec 2019 13:22:36 +0530 Subject: [PATCH] 1) Allow screen-reader to read relationship attributes for tab, tabpanels and tables under it. Similar changes are done for subnode controls. 2) Add role="img" for font icons. Fixes #4764 --- docs/en_US/release_notes_4_17.rst | 1 + .../servers/static/js/privilege.js | 2 +- .../server_groups/servers/static/js/server.js | 2 +- web/pgadmin/browser/static/js/collection.js | 2 +- web/pgadmin/browser/static/js/node.js | 2 +- web/pgadmin/browser/static/js/node.ui.js | 4 +- web/pgadmin/browser/static/js/wizard.js | 10 ++-- .../dashboard/database_dashboard.html | 16 +++--- .../templates/dashboard/server_dashboard.html | 20 +++---- .../misc/bgprocess/static/js/bgprocess.js | 18 +++---- .../misc/file_manager/static/js/utility.js | 8 +-- web/pgadmin/static/js/backform.pgadmin.js | 12 +++-- .../history/query_history_entries.js | 4 +- .../static/vendor/backgrid/backgrid.js | 10 ++++ .../datagrid/templates/datagrid/index.html | 54 +++++++++---------- .../tools/sqleditor/static/js/sqleditor.js | 2 +- 16 files changed, 92 insertions(+), 75 deletions(-) diff --git a/docs/en_US/release_notes_4_17.rst b/docs/en_US/release_notes_4_17.rst index 38d18156b..4a716480a 100644 --- a/docs/en_US/release_notes_4_17.rst +++ b/docs/en_US/release_notes_4_17.rst @@ -9,6 +9,7 @@ This release contains a number of bug fixes and new features since the release o New features ************ +| `Issue #4764 `_ - Allow screen-reader to read relationship attributes in nested elements. Housekeeping ************ diff --git a/web/pgadmin/browser/server_groups/servers/static/js/privilege.js b/web/pgadmin/browser/server_groups/servers/static/js/privilege.js index 2726ef2d6..24386be09 100644 --- a/web/pgadmin/browser/server_groups/servers/static/js/privilege.js +++ b/web/pgadmin/browser/server_groups/servers/static/js/privilege.js @@ -353,7 +353,7 @@ define(['sources/gettext', 'underscore', 'jquery', 'backbone', 'backform', this.$el.attr('target', this.elId); var collection = this.model.get(this.column.get('name')), - tbl = $('
').appendTo(this.$el), + tbl = $('
').appendTo(this.$el), self = this, privilege = true, with_grant = true; diff --git a/web/pgadmin/browser/server_groups/servers/static/js/server.js b/web/pgadmin/browser/server_groups/servers/static/js/server.js index 8d6361378..78c854a70 100644 --- a/web/pgadmin/browser/server_groups/servers/static/js/server.js +++ b/web/pgadmin/browser/server_groups/servers/static/js/server.js @@ -43,7 +43,7 @@ define('pgadmin.node.server', [ if (_.isUndefined(this.get('label')) || _.isNull(this.get('label')) || String(this.get('label')).replace(/^\s+|\s+$/g, '') == '') { - var errmsg = gettext('Label must be specified.'); + var errmsg = gettext('Security label must be specified.'); this.errorModel.set('label', errmsg); return errmsg; } diff --git a/web/pgadmin/browser/static/js/collection.js b/web/pgadmin/browser/static/js/collection.js index 65b61238c..4b11e6bda 100644 --- a/web/pgadmin/browser/static/js/collection.js +++ b/web/pgadmin/browser/static/js/collection.js @@ -99,7 +99,7 @@ define([ '', + '<% if (label != "") { %> <%-label%><% } %>', ].join(' ')); if (location == 'header') { btnGroup.appendTo(that.header); diff --git a/web/pgadmin/browser/static/js/node.js b/web/pgadmin/browser/static/js/node.js index 28e01dc69..1792037c6 100644 --- a/web/pgadmin/browser/static/js/node.js +++ b/web/pgadmin/browser/static/js/node.js @@ -327,7 +327,7 @@ define('pgadmin.browser.node', [