mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
tabindex
This commit is contained in:
@@ -191,6 +191,7 @@ define('crm:views/contact/fields/accounts', ['views/fields/link-multiple-with-co
|
||||
|
||||
let $a = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'setPrimary')
|
||||
.attr('data-id', id)
|
||||
.text(this.translate('Set Primary', 'labels', 'Account'));
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="attachments-container">
|
||||
{{{attachments}}}
|
||||
</div>
|
||||
<a role="button" tabindex="0" class="text-muted pull-right stream-post-info">
|
||||
<a role="button" tabindex="-1" class="text-muted pull-right stream-post-info">
|
||||
<span class="fas fa-info-circle"></span>
|
||||
</a>
|
||||
<a
|
||||
|
||||
@@ -366,9 +366,10 @@ function (/** marked~ */marked, /** DOMPurify~ */ DOMPurify) {
|
||||
|
||||
if (this.collapseButton) {
|
||||
$header.prepend(
|
||||
$('<a />')
|
||||
$('<a>')
|
||||
.addClass('collapse-button')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '-1')
|
||||
.attr('data-action', 'collapseModal')
|
||||
.append(
|
||||
$('<span />')
|
||||
@@ -379,10 +380,11 @@ function (/** marked~ */marked, /** DOMPurify~ */ DOMPurify) {
|
||||
|
||||
if (this.closeButton) {
|
||||
$header.prepend(
|
||||
$('<a />')
|
||||
$('<a>')
|
||||
.addClass('close')
|
||||
.attr('data-dismiss', 'modal')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '-1')
|
||||
.append(
|
||||
$('<span />')
|
||||
.attr('aria-hidden', 'true')
|
||||
@@ -477,6 +479,7 @@ function (/** marked~ */marked, /** DOMPurify~ */ DOMPurify) {
|
||||
this.dropdownItemList.forEach(/** module:ui.Dialog~Button */o => {
|
||||
let $a = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-name', o.name);
|
||||
|
||||
if (o.text) {
|
||||
|
||||
@@ -111,6 +111,7 @@ function (Dep) {
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'selectOptionItemStyle')
|
||||
.attr('data-style', item)
|
||||
.attr('data-value', value)
|
||||
|
||||
@@ -82,6 +82,7 @@ define('views/admin/field-manager/fields/options', ['views/fields/array'], funct
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('pull-right')
|
||||
.attr('data-value', value)
|
||||
.attr('data-action', 'removeValue')
|
||||
|
||||
@@ -321,6 +321,7 @@ function (Dep, From, EmailAddress) {
|
||||
$('<a>')
|
||||
.attr('data-address', address)
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('pull-right'),
|
||||
$text
|
||||
);
|
||||
|
||||
@@ -218,6 +218,7 @@ define(
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'createContact')
|
||||
.attr('data-address', address)
|
||||
.text(this.translate('Create Contact', 'labels', 'Email'))
|
||||
@@ -231,6 +232,7 @@ define(
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'createLead')
|
||||
.attr('data-address', address)
|
||||
.text(this.translate('Create Lead', 'labels', 'Email'))
|
||||
@@ -244,6 +246,7 @@ define(
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'addToContact')
|
||||
.attr('data-address', address)
|
||||
.text(this.translate('Add to Lead', 'labels', 'Email'))
|
||||
@@ -257,6 +260,7 @@ define(
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'addToLead')
|
||||
.attr('data-address', address)
|
||||
.text(this.translate('Add to Lead', 'labels', 'Email'))
|
||||
|
||||
@@ -543,6 +543,7 @@ function (Dep, RegExpPattern, /** module:ui/multi-select*/MultiSelect) {
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('pull-right')
|
||||
.attr('data-value', value)
|
||||
.attr('data-action', 'removeValue')
|
||||
|
||||
@@ -828,6 +828,7 @@ define('views/fields/base', ['view'], function (Dep) {
|
||||
this.once('after:render', () => {
|
||||
$a = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '-1')
|
||||
.addClass('text-muted field-info')
|
||||
.append(
|
||||
$('<span>').addClass('fas fa-info-circle')
|
||||
@@ -1223,12 +1224,14 @@ define('views/fields/base', ['view'], function (Dep) {
|
||||
|
||||
let $saveLink = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '-1')
|
||||
.addClass('pull-right inline-save-link')
|
||||
.attr('title', 'Ctrl+Enter')
|
||||
.text(this.translate('Update'));
|
||||
|
||||
let $cancelLink = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '-1')
|
||||
.addClass('pull-right inline-cancel-link')
|
||||
.attr('title', 'Esc')
|
||||
.text(this.translate('Cancel'));
|
||||
|
||||
@@ -384,6 +384,7 @@ function (Dep, RegExpPattern) {
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'toggleBoolColumn')
|
||||
.attr('data-column', column)
|
||||
.attr('data-id', id)
|
||||
@@ -417,6 +418,7 @@ function (Dep, RegExpPattern) {
|
||||
|
||||
let $remove = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-id', id)
|
||||
.attr('data-action', 'clearLink')
|
||||
.addClass('pull-right')
|
||||
|
||||
@@ -201,6 +201,7 @@ define('views/fields/link-multiple-with-primary', ['views/fields/link-multiple']
|
||||
|
||||
let $remove = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-id', id)
|
||||
.attr('data-action', 'clearLink')
|
||||
.addClass('pull-right')
|
||||
|
||||
@@ -277,6 +277,7 @@ define('views/fields/link-multiple-with-role', ['views/fields/link-multiple'], f
|
||||
|
||||
let $remove = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-id', id)
|
||||
.attr('data-action', 'clearLink')
|
||||
.addClass('pull-right')
|
||||
|
||||
@@ -623,6 +623,7 @@ define('views/fields/link-multiple', ['views/fields/base'], function (Dep) {
|
||||
$('<a>')
|
||||
.addClass('pull-right')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-id', id)
|
||||
.attr('data-action', 'clearLink')
|
||||
.append(
|
||||
|
||||
@@ -103,6 +103,7 @@ define('views/modals/compose-email', ['views/modals/edit'], function (Dep) {
|
||||
|
||||
this.$header = $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-action', 'fullFormDraft')
|
||||
.text(this.getLanguage().translate('Compose Email'));
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ define('views/preferences/fields/dashboard-tab-list', ['views/fields/array'], fu
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('pull-right')
|
||||
.attr('data-value', value)
|
||||
.attr('data-action', 'removeValue')
|
||||
|
||||
@@ -2241,6 +2241,7 @@ function (Dep, MassActionHelper, ExportHelper) {
|
||||
html =
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('reset-custom-order')
|
||||
.attr('title', this.translate('Reset'))
|
||||
.append(
|
||||
|
||||
@@ -386,6 +386,7 @@ define('views/settings/fields/dashboard-layout', ['views/fields/base', 'lib!grid
|
||||
|
||||
actions2Html += $('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.addClass('pull-right')
|
||||
.attr('data-action', 'editDashlet')
|
||||
.attr('data-id', id)
|
||||
|
||||
@@ -144,6 +144,7 @@ define('views/settings/fields/tab-list', ['views/fields/array'], function (Dep)
|
||||
.append(
|
||||
$('<a>')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-value', item.id)
|
||||
.attr('data-action', 'editGroup')
|
||||
.css('margin-right', '7px')
|
||||
@@ -155,6 +156,7 @@ define('views/settings/fields/tab-list', ['views/fields/array'], function (Dep)
|
||||
$('<a>')
|
||||
.addClass('pull-right')
|
||||
.attr('role', 'button')
|
||||
.attr('tabindex', '0')
|
||||
.attr('data-value', item.id)
|
||||
.attr('data-action', 'removeValue')
|
||||
.append(
|
||||
|
||||
Reference in New Issue
Block a user