mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
Renamed module function name (spelling weekday as one word)
This commit is contained in:
parent
098a475442
commit
79c0f2c356
1 changed files with 3 additions and 3 deletions
|
@ -66,14 +66,14 @@ window.App.Utils.Date = (function () {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Id of a Weekday using the US week format and day names (Sunday=0) as used in the JS code of the
|
* Get the Id of a Weekday using the US week format and day names (Sunday=0) as used in the JS code of the
|
||||||
* application, case insensitive, short and long names supported.
|
* application, case-insensitive, short and long names supported.
|
||||||
*
|
*
|
||||||
* @param {String} weekDayName The weekday name among Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
|
* @param {String} weekDayName The weekday name among Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
|
||||||
* Saturday.
|
* Saturday.
|
||||||
|
|
||||||
* @return {Number} Returns the ID of the weekday.
|
* @return {Number} Returns the ID of the weekday.
|
||||||
*/
|
*/
|
||||||
function getWeekDayId(weekDayName) {
|
function getWeekdayId(weekDayName) {
|
||||||
let result;
|
let result;
|
||||||
|
|
||||||
switch (weekDayName.toLowerCase()) {
|
switch (weekDayName.toLowerCase()) {
|
||||||
|
@ -186,7 +186,7 @@ window.App.Utils.Date = (function () {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
format,
|
format,
|
||||||
getWeekDayId,
|
getWeekdayId,
|
||||||
sortWeekDictionary,
|
sortWeekDictionary,
|
||||||
getWeekdayName
|
getWeekdayName
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue