fixed linting issues

This commit is contained in:
Jeremias Arnstadt 2017-01-29 00:59:38 +01:00
parent bc257f4951
commit 5c0b04bfc8
2 changed files with 17 additions and 17 deletions

View File

@ -27,7 +27,7 @@ Module.register("calendar", {
getRelative: 6, getRelative: 6,
fadePoint: 0.25, // Start on 1/4th of the list. fadePoint: 0.25, // Start on 1/4th of the list.
hidePrivate: false, hidePrivate: false,
colored: false, colored: false,
calendars: [ calendars: [
{ {
symbol: "calendar", symbol: "calendar",
@ -116,9 +116,9 @@ Module.register("calendar", {
var eventWrapper = document.createElement("tr"); var eventWrapper = document.createElement("tr");
if (this.config.colored) { if (this.config.colored) {
eventWrapper.style.cssText = 'color:' + this.colorForUrl(event.url); eventWrapper.style.cssText = "color:" + this.colorForUrl(event.url);
} }
eventWrapper.className = "normal"; eventWrapper.className = "normal";
@ -149,11 +149,11 @@ Module.register("calendar", {
titleWrapper.innerHTML = this.titleTransform(event.title) + repeatingCountTitle; titleWrapper.innerHTML = this.titleTransform(event.title) + repeatingCountTitle;
if (!this.config.colored) { if (!this.config.colored) {
titleWrapper.className = "title bright"; titleWrapper.className = "title bright";
} else { } else {
titleWrapper.className = "title"; titleWrapper.className = "title";
} }
eventWrapper.appendChild(titleWrapper); eventWrapper.appendChild(titleWrapper);
@ -285,8 +285,8 @@ Module.register("calendar", {
var event = calendar[e]; var event = calendar[e];
if(this.config.hidePrivate) { if(this.config.hidePrivate) {
if(event.class === "PRIVATE") { if(event.class === "PRIVATE") {
// do not add the current event, skip it // do not add the current event, skip it
continue; continue;
} }
} }
event.url = c; event.url = c;
@ -336,7 +336,7 @@ Module.register("calendar", {
return this.config.defaultSymbol; return this.config.defaultSymbol;
}, },
/* colorForUrl(url) /* colorForUrl(url)
* Retrieves the color for a specific url. * Retrieves the color for a specific url.
* *
* argument url sting - Url to look for. * argument url sting - Url to look for.
@ -351,7 +351,7 @@ Module.register("calendar", {
} }
} }
return '#fff'; return "#fff";
}, },
/* countTitleForUrl(url) /* countTitleForUrl(url)
* Retrieves the name for a specific url. * Retrieves the name for a specific url.

View File

@ -23,7 +23,7 @@ Module.register("weatherforecast",{
lang: config.language, lang: config.language,
fade: true, fade: true,
fadePoint: 0.25, // Start on 1/4th of the list. fadePoint: 0.25, // Start on 1/4th of the list.
colored: false, colored: false,
initialLoadDelay: 2500, // 2.5 seconds delay. This delay is used to keep the OpenWeather API happy. initialLoadDelay: 2500, // 2.5 seconds delay. This delay is used to keep the OpenWeather API happy.
retryDelay: 2500, retryDelay: 2500,
@ -121,9 +121,9 @@ Module.register("weatherforecast",{
var forecast = this.forecast[f]; var forecast = this.forecast[f];
var row = document.createElement("tr"); var row = document.createElement("tr");
if (this.config.colored) { if (this.config.colored) {
row.className = "colored"; row.className = "colored";
} }
table.appendChild(row); table.appendChild(row);
var dayCell = document.createElement("td"); var dayCell = document.createElement("td");