diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-19 05:22:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 05:22:53 +0300 |
commit | 8f4bc9695380d465e7dfe365e66a0153f76040ff (patch) | |
tree | 3d6bbfa74611f54feb70c3fc5c1df81e8ca6bf94 /plugins/CoreHome | |
parent | af368cfc02bae5026429b0418d83de2b0890ef44 (diff) | |
parent | 8dbc563e99432f38de107be3dfb0f0a17b9e8f87 (diff) |
Merge pull request #11038 from piwik/3.x-dev3.0.0
Piwik 3.0.0 release
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index e364251f9b..763674585d 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -509,7 +509,10 @@ $.extend(DataTable.prototype, UIControl.prototype, { setMaxTableWidthIfNeeded(domElem, 1200); - var isTableVisualization = this.jsViewDataTable && this.jsViewDataTable.indexOf('table') !== -1; + var isTableVisualization = this.jsViewDataTable + && typeof this.jsViewDataTable === 'string' + && typeof this.jsViewDataTable.indexOf === 'function' + && this.jsViewDataTable.indexOf('table') !== -1; if (isTableVisualization) { // we do this only for html tables |