Fixes #3449 - Cannot select multiple tickets in ticket overview with shift+click in Firefox

This commit is contained in:
Romit Choudhary 2021-07-28 16:05:34 +02:00 committed by Thorsten Eckel
parent cfa3f27dc4
commit 8a42ec4f7b
4 changed files with 13 additions and 13 deletions

View file

@ -82,7 +82,7 @@ class App.UiElement.user_permission
throttled = _.throttle( (e) -> throttled = _.throttle( (e) ->
input = $(@).find('input') input = $(@).find('input')
upcoming_state = !input.prop('checked') upcoming_state = if $(e.target).is(':checkbox') then input.prop('checked') else !input.prop('checked')
value = input.val() value = input.val()
if value is 'full' and upcoming_state is true if value is 'full' and upcoming_state is true

View file

@ -1444,9 +1444,9 @@ td .icon-trash {
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
pointer-events: none;
position: absolute; position: absolute;
opacity: 0; opacity: 0;
cursor: pointer;
&:disabled ~ .icon { &:disabled ~ .icon {
opacity: 0.33; opacity: 0.33;

View file

@ -46,17 +46,17 @@ class AgentTicketOverviewLevel0Test < TestCase
# select both via bulk action # select both via bulk action
click( click(
css: %(.content.active table tr td input[value="#{ticket1[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket1[:id]}"]),
fast: true, fast: true,
) )
# scroll to reply - needed for chrome # scroll to reply - needed for chrome
scroll_to( scroll_to(
position: 'top', position: 'top',
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
) )
click( click(
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
fast: true, fast: true,
) )
@ -263,17 +263,17 @@ class AgentTicketOverviewLevel0Test < TestCase
# select both via bulk action # select both via bulk action
click( click(
css: %(.content.active table tr td input[value="#{ticket1[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket1[:id]}"]),
fast: true, fast: true,
) )
# scroll to reply - needed for chrome # scroll to reply - needed for chrome
scroll_to( scroll_to(
position: 'top', position: 'top',
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
) )
click( click(
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
fast: true, fast: true,
) )
@ -411,17 +411,17 @@ class AgentTicketOverviewLevel0Test < TestCase
# select both via bulk action # select both via bulk action
click( click(
css: %(.content.active table tr td input[value="#{ticket1[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket1[:id]}"]),
fast: true, fast: true,
) )
# scroll to reply - needed for chrome # scroll to reply - needed for chrome
scroll_to( scroll_to(
position: 'top', position: 'top',
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
) )
click( click(
css: %(.content.active table tr td input[value="#{ticket2[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{ticket2[:id]}"]),
fast: true, fast: true,
) )
@ -574,7 +574,7 @@ class AgentTicketOverviewLevel0Test < TestCase
# then select the ticket that we do not have change rights to # then select the ticket that we do not have change rights to
scroll_to( scroll_to(
position: 'top', position: 'top',
css: %(.content.active table tr td input[value="#{cannot_change_ticket[:id]}"] + .icon-checkbox.icon-unchecked), css: %(.content.active table tr td input[value="#{cannot_change_ticket[:id]}"]),
) )
check( check(
css: %(.content.active table tr td input[value="#{cannot_change_ticket[:id]}"]), css: %(.content.active table tr td input[value="#{cannot_change_ticket[:id]}"]),

View file

@ -147,7 +147,7 @@ class MaintenanceSessionMessageTest < TestCase
) )
click( click(
browser: browser1, browser: browser1,
css: '.content.active .js-Message input[name="reload"] + .icon-checkbox.icon-unchecked', css: '.content.active .js-Message input[name="reload"]',
) )
click( click(
browser: browser1, browser: browser1,