Commit 6c16d9be authored by Curtis Conard's avatar Curtis Conard Committed by Johan Cwiklinski
Browse files

Suppress ticket list refresh when modal open

closes #9006
parent 5f9e95bb
......@@ -40,7 +40,13 @@ if (Session::getCurrentInterface() == "helpdesk") {
Html::header(Ticket::getTypeName(Session::getPluralNumber()), '', "helpdesk", "ticket");
}
echo Html::manageRefreshPage();
$callback = <<<JS
if ($('div[role="dialog"]:visible').length === 0) {
window.location.reload();
}
JS;
echo Html::manageRefreshPage(false, $callback);
if ($default = Glpi\Dashboard\Grid::getDefaultDashboardForMenu('mini_ticket', true)) {
$dashboard = new Glpi\Dashboard\Grid($default, 33, 2, 'mini_core');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment