From bb94d108cea6114124b4f0ad96b5326d397ff801 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Mon, 23 Dec 2013 21:02:28 +0100 Subject: [PATCH] Clicking on a disabled dashboard button still executed the click. --- panels/stats_table/module.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/stats_table/module.js b/panels/stats_table/module.js index 154bafd4154a..819eb8214960 100644 --- a/panels/stats_table/module.js +++ b/panels/stats_table/module.js @@ -432,6 +432,9 @@ define([ a: row.display_name }; }); + if (rows.length == 0 ) { + return "javascript:;"; + } rows = JSON.stringify(rows); var time = filterSrv.timeRange(false); var show;