From 40bdbdc8870eef71706ea39f9727ab5c3e0e446d Mon Sep 17 00:00:00 2001 From: Manthan Surkar Date: Fri, 17 Jan 2020 00:27:15 +0530 Subject: [PATCH 1/2] Change Location of Profiling state documentation Signed-off-by: Manthan Surkar --- templates/sql/profiling_chart.twig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/sql/profiling_chart.twig b/templates/sql/profiling_chart.twig index 0f809541ea..5ad1ea84dc 100644 --- a/templates/sql/profiling_chart.twig +++ b/templates/sql/profiling_chart.twig @@ -11,7 +11,6 @@ {% trans 'State' %} - {{ show_mysql_docu('general-thread-states') }}
@@ -27,13 +26,12 @@
-

{% trans 'Summary by state' %}

+

{% trans 'Summary by state' %}{{ show_mysql_docu('general-thread-states') }}

{% trans 'State' %} - {{ show_mysql_docu('general-thread-states') }}
From 2d2db63521b268a940b041613ce7d9a06598d916 Mon Sep 17 00:00:00 2001 From: Manthan Surkar Date: Fri, 17 Jan 2020 01:42:58 +0530 Subject: [PATCH 2/2] Fix: Profiling state sorting in only one direction Signed-off-by: Manthan Surkar --- js/sql.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/sql.js b/js/sql.js index 41bfe5b85c..7c2b573988 100644 --- a/js/sql.js +++ b/js/sql.js @@ -1020,6 +1020,10 @@ Sql.initProfilingTables = function () { if (!$.tablesorter) { return; } + // Added to allow two direction sorting + $('#profiletable') + .find('thead th') + .off('click mousedown'); $('#profiletable').tablesorter({ widgets: ['zebra'], @@ -1032,6 +1036,10 @@ Sql.initProfilingTables = function () { } } }); + // Added to allow two direction sorting + $('#profilesummarytable') + .find('thead th') + .off('click mousedown'); $('#profilesummarytable').tablesorter({ widgets: ['zebra'],