Skip to content

Commit

Permalink
Issue #1060: Do not open more than one activity. (Also #1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenoe committed Nov 24, 2021
1 parent 88a7f76 commit 5be710d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions var/httpd/htdocs/js/Core.Customer.TicketZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ Core.Customer.TicketZoom = (function (TargetNS) {
BuildArticles();
$('#ReplyButton').on('click', function(Event){
Event.preventDefault();

// hide all open activities
$('.Activity.Visible .CloseButton').trigger('click');

$FollowUp.show();
$FollowUp.addClass('Visible');
Core.UI.InputFields.Activate();
Expand All @@ -277,6 +281,9 @@ Core.Customer.TicketZoom = (function (TargetNS) {
var DialogEntityID = $(this).attr('id').replace( /^Button_/, '' ),
$DialogWidget = $( '#Process_' + DialogEntityID );

// hide all open activities
$('.Activity.Visible .CloseButton').trigger('click');

$DialogWidget.show();
$DialogWidget.addClass('Visible');
Core.UI.InputFields.Activate();
Expand Down

0 comments on commit 5be710d

Please sign in to comment.