Skip to content

Commit

Permalink
DashboardTicketWidgetFilter - Additional check for existing Dashboard…
Browse files Browse the repository at this point in the history
…Actions element.
  • Loading branch information
dennykorsukewitz committed Nov 8, 2023
1 parent 53964f8 commit ec51ec0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions var/httpd/htdocs/js/Core.Agent.Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,10 @@ Core.Agent.Dashboard = (function (TargetNS) {
// move DashboardActions to the <div class="Header"> after <h2>
var $DashboardActions = $('#Dashboard' + Core.App.EscapeSelector(WidgetFilterData.Name)).find('.DashboardActions').detach();

if ($DashboardActions.length == 0){
return;
}

// created $FilterContainer var, added it to Header and prepended $DashboardActions to it
if($('#Dashboard' + Core.App.EscapeSelector(WidgetFilterData.Name) + '-box').find('.HeaderFilter').length) {
$('#Dashboard' + Core.App.EscapeSelector(WidgetFilterData.Name) + '-box').find('.HeaderFilter').detach();
Expand Down

0 comments on commit ec51ec0

Please sign in to comment.