mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-10 09:14:37 +00:00
Revert "Renamed function"
This reverts commit 6aa0a4a4
This commit is contained in:
parent
f449feb3f8
commit
3d73153e59
@ -241,7 +241,7 @@ Module.register("calendar", {
|
||||
}
|
||||
}
|
||||
|
||||
titleWrapper.innerHTML = this.truncateTitle(event.title) + repeatingCountTitle;
|
||||
titleWrapper.innerHTML = this.titleTransform(event.title) + repeatingCountTitle;
|
||||
|
||||
var titleClass = this.titleClassForUrl(event.url);
|
||||
|
||||
@ -389,7 +389,7 @@ Module.register("calendar", {
|
||||
var descCell = document.createElement("td");
|
||||
descCell.className = "location";
|
||||
descCell.colSpan = "2";
|
||||
descCell.innerHTML = this.truncateTitle(event.location);
|
||||
descCell.innerHTML = this.titleTransform(event.location);
|
||||
locationRow.appendChild(descCell);
|
||||
|
||||
wrapper.appendChild(locationRow);
|
||||
@ -710,8 +710,8 @@ Module.register("calendar", {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
},
|
||||
|
||||
/* truncateTitle(title)
|
||||
* Transforms the title of an event and the location for usage.
|
||||
/* titleTransform(title)
|
||||
* Transforms the title of an event for usage.
|
||||
* Replaces parts of the text as defined in config.titleReplace.
|
||||
* Shortens title based on config.maxTitleLength and config.wrapEvents
|
||||
*
|
||||
@ -719,7 +719,7 @@ Module.register("calendar", {
|
||||
*
|
||||
* return string - The transformed title.
|
||||
*/
|
||||
truncateTitle: function (title) {
|
||||
titleTransform: function (title) {
|
||||
for (var needle in this.config.titleReplace) {
|
||||
var replacement = this.config.titleReplace[needle];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user