Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
6c16d9be
Commit
6c16d9be
authored
Jun 27, 2021
by
Curtis Conard
Committed by
Johan Cwiklinski
Jun 28, 2021
Browse files
Suppress ticket list refresh when modal open
closes #9006
parent
5f9e95bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/ticket.php
View file @
6c16d9be
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment