Some more accessibility fixes.

refs #5732
This commit is contained in:
Aditya Toshniwal 
2020-09-17 20:16:38 +05:30
committed by Akshay Joshi
parent 9e69e13468
commit 95a5b1e459
2 changed files with 2 additions and 8 deletions

View File

@@ -461,6 +461,7 @@ define('pgadmin.node.database', [
id: 'schema_res', label: gettext('Schema restriction'), id: 'schema_res', label: gettext('Schema restriction'),
type: 'select2', group: gettext('Advanced'), type: 'select2', group: gettext('Advanced'),
mode: ['properties', 'edit', 'create'], mode: ['properties', 'edit', 'create'],
helpMessage: gettext('Note: Changes to the schema restriction will require the Schemas node in the browser to be refreshed before they will be shown.'),
select2: { select2: {
multiple: true, allowClear: false, tags: true, multiple: true, allowClear: false, tags: true,
tokenSeparators: [','], first_empty: false, tokenSeparators: [','], first_empty: false,
@@ -488,11 +489,6 @@ define('pgadmin.node.database', [
}, },
}), }),
}, },
{
id: 'note', label: gettext('Note: Changes to the schema restriction will require the Schemas node in the browser to be refreshed before they will be shown.'),
group: gettext('Advanced'), type: 'help',
mode: ['edit', 'create'],
},
], ],
validate: function() { validate: function() {
var name = this.get('name'); var name = this.get('name');

View File

@@ -1810,15 +1810,13 @@ define([
// Use the Backform Control's render function // Use the Backform Control's render function
Backform.Control.prototype.render.apply(this, arguments); Backform.Control.prototype.render.apply(this, arguments);
var field = _.defaults(this.field.toJSON(), this.defaults);
this.sqlCtrl = CodeMirror.fromTextArea( this.sqlCtrl = CodeMirror.fromTextArea(
(this.$el.find('textarea')[0]), { (this.$el.find('textarea')[0]), {
lineNumbers: true, lineNumbers: true,
mode: 'text/x-pgsql', mode: 'text/x-pgsql',
readOnly: true, readOnly: true,
extraKeys: pgAdmin.Browser.editor_shortcut_keys, extraKeys: pgAdmin.Browser.editor_shortcut_keys,
screenReaderLabel: field.label, screenReaderLabel: 'SQL',
}); });
this.reflectPreferences(); this.reflectPreferences();