diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f6bd73..f654606 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ There are next changes: +## 1.1.7 + +There are next changes: + +- added a link on profile list page to search without the app filter + ## 1.1.6 There are next changes: diff --git a/src/templates/profile_list.php b/src/templates/profile_list.php index be54a87..dcc4b49 100644 --- a/src/templates/profile_list.php +++ b/src/templates/profile_list.php @@ -40,7 +40,7 @@ # last snapshot - label + label app calls count @@ -78,6 +78,10 @@ + +
@@ -253,12 +257,25 @@ function (resp) { savePages : true, updateArrows: true, output: '{startRow:input} – {endRow} / {totalRows} rows', - }); + }).bind('filterEnd', function() { + let found = $('.sortable tbody tr:visible').length; + let app = ""; + let label = $('.tablesorter-filter[data-column=2]').val(); + + if (found === 0 && app !== "" && label !== "") { + $('#empty-result-link a').attr("href", "/profiler/result-list.phtml?label=" + label + "&app="); + $('#empty-result-link').show(); + } else { + $('#empty-result-link').hide(); + } + }); + $('[data-toggle="tooltip"]').tooltip(); $('select[data-column=3]').unbind().change(function (event) { event.stopPropagation(); - location.replace('?app=' + $(this).val()); + let label = $('.tablesorter-filter[data-column=2]').val(); + location.replace('?app=' + $(this).val() + '&label=' + label); }); $('.aggregate-snapshot-button').on('click', function () {