forked from mirrors/easyappointments
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
|
||||
* 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,
|
||||
* Saturday.
|
||||
|
||||
* @return {Number} Returns the ID of the weekday.
|
||||
*/
|
||||
function getWeekDayId(weekDayName) {
|
||||
function getWeekdayId(weekDayName) {
|
||||
let result;
|
||||
|
||||
switch (weekDayName.toLowerCase()) {
|
||||
|
@ -186,7 +186,7 @@ window.App.Utils.Date = (function () {
|
|||
|
||||
return {
|
||||
format,
|
||||
getWeekDayId,
|
||||
getWeekdayId,
|
||||
sortWeekDictionary,
|
||||
getWeekdayName
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue