Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request elastic#61 from spenceralger/empty_dashboard_click
Browse files Browse the repository at this point in the history
fixed unsafe link when clicking dashboard link with no rows selected
  • Loading branch information
spenceralger committed Jan 23, 2014
2 parents a564c94 + 87d214c commit 1ef6232
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kibana/panels/stats_table/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ define([
return !a ? "" : (a.type === "upper_bound" ? ">" : "<") + y_format_metric_value(a.threshold, metric);
};


$scope.detailViewLink = function (rows, fields) {
var
query,
Expand All @@ -611,12 +610,11 @@ define([
};
});
if (rows.length === 0) {
/*jshint -W107 */
return "javascript:;";
return null;
}
rows = JSON.stringify(rows);
time = filterSrv.timeRange(false);
show;

if (!_.isUndefined(fields)) {
show = "&show=" + fields.join(",");
} else {
Expand Down

0 comments on commit 1ef6232

Please sign in to comment.