summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo
diff options
context:
space:
mode:
authorStefan Weil2019-12-16 15:25:34 +0100
committerStefan Weil2019-12-16 15:25:34 +0100
commit4c12b0c10c4c070cf56d61632cdb7e127bb7c837 (patch)
treefd5b9f3cd3383c80a85ebf1c32c6ead161790688 /modules-available/locationinfo
parentFix some typos (found by codespell) (diff)
downloadslx-admin-4c12b0c10c4c070cf56d61632cdb7e127bb7c837.tar.gz
slx-admin-4c12b0c10c4c070cf56d61632cdb7e127bb7c837.tar.xz
slx-admin-4c12b0c10c4c070cf56d61632cdb7e127bb7c837.zip
Fix some more typos
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'modules-available/locationinfo')
-rwxr-xr-xmodules-available/locationinfo/templates/frontend-default.html10
-rw-r--r--modules-available/locationinfo/templates/frontend-summary.html12
2 files changed, 11 insertions, 11 deletions
diff --git a/modules-available/locationinfo/templates/frontend-default.html b/modules-available/locationinfo/templates/frontend-default.html
index 2388af42..cad78586 100755
--- a/modules-available/locationinfo/templates/frontend-default.html
+++ b/modules-available/locationinfo/templates/frontend-default.html
@@ -15,7 +15,7 @@ optional:
daystoshow:[1,2,3,4,5,6,7] sets how many days the calendar shows
scale:[10-90] scales the calendar and Roomplan in mode 1
switchtime:[1-120] sets the time between switchen in mode 4 (in seconds)
- calupdate: Time the calender querys for updates,in minutes.
+ calupdate: Time the calendar queries for updates,in minutes.
roomupdate: Time the PCs in the room gets updated,in seconds.
rotation:[0-3] rotation of the roomplan
vertical:[true] only mode 1, sets the calendar above the roomplan
@@ -936,7 +936,7 @@ optional:
}
/**
- * querys the Calendar data
+ * queries the Calendar data
*/
function queryCalendars() {
if (!panelUuid) return;
@@ -1016,7 +1016,7 @@ optional:
room.state = null;
UpdateRoomHeader(room);
} catch (e) {
- console.log("Error: Couldnt add calendar data");
+ console.log("Error: Couldn't add calendar data");
console.log(e);
}
}
@@ -1511,7 +1511,7 @@ optional:
timeout: 5000,
success: function (result) {
if (!result || !result.ts) {
- console.log('Warning: get=timestamp didnt return json with ts field');
+ console.log("Warning: get=timestamp didn't return json with ts field");
return;
}
if (globalConfig.ts && globalConfig.ts !== result.ts) {
@@ -1534,7 +1534,7 @@ optional:
timeout: 30000,
success: function (result) {
if (!result || result.constructor !== Array) {
- console.log('Warning: get=machines didnt return array');
+ console.log("Warning: get=machines didn't return array");
return;
}
for (var i = 0; i < result.length; i++) {
diff --git a/modules-available/locationinfo/templates/frontend-summary.html b/modules-available/locationinfo/templates/frontend-summary.html
index ae089da5..540d0af6 100644
--- a/modules-available/locationinfo/templates/frontend-summary.html
+++ b/modules-available/locationinfo/templates/frontend-summary.html
@@ -244,7 +244,7 @@
}
/**
- * Querys Pc states
+ * Queries Pc states
* Room are queried with the {{uuid}} of the panel.
*/
function queryRooms() {
@@ -483,7 +483,7 @@
}
/**
- * Retruns next Opening
+ * Returns next Opening
* @param room Room Object
* @returns bestdate Date Object of next opening
*/
@@ -691,14 +691,14 @@
/**
- * querys the Calendar data
- * Calender is queried with the {{uuid}} of the panel.
+ * queries the Calendar data
+ * Calendar is queried with the {{uuid}} of the panel.
* api.inc.php / page.inc.php is getting the ids with the panel uuid.
*/
function queryCalendars() {
var url = "{{dirprefix}}api.php?do=locationinfo&get=calendar&uuid={{uuid}}";
- // Todo reimplement Frontend methode if needed
+ // Todo reimplement Frontend method if needed
/*
if(!(room.config.calendarqueryurl === undefined)) {
url = room.config.calendarqueryurl;
@@ -729,7 +729,7 @@
timeout: 5000,
success: function (result) {
if (!result || !result.ts) {
- console.log('Warning: get=timestamp didnt return json with ts field');
+ console.log("Warning: get=timestamp didn't return json with ts field");
return;
}
if (config.ts && config.ts !== result.ts) {