Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2013-10-16 08:23:19 +0400
committerThomas Steur <tsteur@users.noreply.github.com>2013-10-16 08:23:19 +0400
commitb7a9ac11e4881cf74e13d072d834a5ae692b37f9 (patch)
tree9a0154e215663799b3c5add3ac386db62f8c32f8
parent554f06c3969681aaa59ad2b1de72d313f633e78d (diff)
display records to plot only if there are rows to select2.0-b1
-rw-r--r--plugins/CoreVisualizations/javascripts/seriesPicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreVisualizations/javascripts/seriesPicker.js b/plugins/CoreVisualizations/javascripts/seriesPicker.js
index 2a722cd539..199fa3154a 100644
--- a/plugins/CoreVisualizations/javascripts/seriesPicker.js
+++ b/plugins/CoreVisualizations/javascripts/seriesPicker.js
@@ -300,7 +300,7 @@
}
// create selectable rows list
- if (this.selectableRows) {
+ if ($.isArray(this.selectableRows) && this.selectableRows.length) {
// "records to plot" subheadline
var header = $('<p/>').addClass('headline').addClass('recordsToPlot').html(this.lang.recordsToPlot);
popover.append(header);
@@ -360,4 +360,4 @@
var exports = require('piwik/DataTableVisualizations/Widgets');
exports.SeriesPicker = SeriesPicker;
-})(jQuery, document, require); \ No newline at end of file
+})(jQuery, document, require);