Skip to content

Commit

Permalink
Merge branch 'kolewu-feature/noTableHeader'
Browse files Browse the repository at this point in the history
  • Loading branch information
skastenholz committed Aug 13, 2019
2 parents 2871b4d + 05c8778 commit ad4975e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions MMM-DVB.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Module.register("MMM-DVB", {
resultNum: 5, // number of displayed results
lines: [], // what lines should be displayed
directions: [], // what destinations should be displayed
reload: 1 * 60 * 1000 // reload interval, every minute
reload: 1 * 60 * 1000, // reload interval, every minute
noTableHeader: false // suppress table header if true
},

getTranslations: function() {
Expand Down Expand Up @@ -43,8 +44,10 @@ Module.register("MMM-DVB", {
table.border = '0';

if (connections.length > 0) {
table.appendChild(this.connectionTableHeaderRow());
table.appendChild(this.connectionTableSpacerRow());
if (!this.config.noTableHeader) {
table.appendChild(this.connectionTableHeaderRow());
table.appendChild(this.connectionTableSpacerRow());
}
var self = this;
connections.forEach(function(connection) {
table.appendChild(self.connectionTableConnectionRow(connection));
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Sample configuration entry for your `~/MagicMirror/config/config.js` with option
lines: ["1", "2"], // What lines should be displayed?
directions: ["Striesen"], // What directions should be displayed?
reload: 60000 // How often should the information be updated? (In milliseconds)
noTableHeader: false // suppress table header if true
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"grunt-contrib-jshint": "^2.1.0",
"grunt-cssbeautifier": "^0.1.2",
"grunt-jsbeautifier": "^0.2.13",
"grunt-markdownlint": "^2.6.0",
"grunt-markdownlint": "^2.6.0",
"time-grunt": "^2.0.0"
}
}

0 comments on commit ad4975e

Please sign in to comment.