Skip to content

Commit

Permalink
perf(wizard): load counters after forms
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Nov 5, 2021
1 parent 9dd7982 commit 896194b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions inc/wizard.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,6 @@ public static function showTicketSummary() {
</span>";

echo '</span>'; // formcreator_servicecatalogue_ticket_summary
echo Html::scriptBlock("$(function() {
plugin_formcreator.getCounters();
})");
}

protected static function findActiveMenuItem() {
Expand Down
5 changes: 5 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ $(function() {
});
}

// load counters
if ($('.status.status_incoming .status_number').length > 0) {
plugin_formcreator.getCounters();
}

// Initialize search bar
var searchInput = $('#plugin_formcreator_searchBar input:first');
if (searchInput.length == 1) {
Expand Down

0 comments on commit 896194b

Please sign in to comment.