Skip to content

Commit

Permalink
Merge pull request #15 from andrewgjohnson/v1.0.3-rc
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
andrewgjohnson committed Aug 5, 2023
2 parents 129ed59 + a4151f9 commit 637abd2
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to the [agjCalendar plugin](https://github.com/andrewgjohnso

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this plugin adheres to [Semantic Versioning](http://semver.org/).

## v1.0.3 (August 5, 2023)
* Fixed a bug where the `defaultDate` or `defaultEndDate` option being set to `"blank"` would occasionally throw a Javascript error

## v1.0.2 (August 5, 2023)
* Cleaned up [example 6](https://github.com/andrewgjohnson/agjCalendar/blob/master/examples/example6-existing-values.js) to better illustrate existing/original values
* Enabled the `eqeqeq` rule in ESLint and ensured all comparisons are `===`/`!==` instead of `==`/`!=`
Expand Down
4 changes: 2 additions & 2 deletions documentation/agjCalendar.agjjQuery.org/layouts/layout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--/**
* Online documentation of agjCalendar v1.0.2.
* Online documentation of agjCalendar v1.0.3.
*
* Copyright (c) 2013-2023 Andrew G. Johnson <andrew@andrewgjohnson.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -24,7 +24,7 @@
* @see {@link https://github.com/andrewgjohnson/agjCalendar GitHub Repository}
* @see {@link https://agjCalendar.agjjQuery.org/ Online Documentation}
* @author Andrew G. Johnson <andrew@andrewgjohnson.com>
* @version 1.0.2
* @version 1.0.3
*/-->
<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage": "https://agjCalendar.agjjQuery.org/",
"description": "agjCalendar is a plugin for the jQuery Javascript library to deal with calendars, dates and date ranges",
"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"repository": "https://github.com/andrewgjohnson/agjCalendar",
"main": "source/agjCalendar/jquery.agjCalendar.min.js",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions source/agjCalendar/jquery.agjCalendar.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* CSS source code of agjCalendar v1.0.2.
* CSS source code of agjCalendar v1.0.3.
*
* Copyright (c) 2013-2023 Andrew G. Johnson <andrew@andrewgjohnson.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -23,7 +23,7 @@
* @see {@link https://github.com/andrewgjohnson/agjCalendar GitHub Repository}
* @see {@link https://agjCalendar.agjjQuery.org/ Online Documentation}
* @author Andrew G. Johnson <andrew@andrewgjohnson.com>
* @version 1.0.2
* @version 1.0.3
*/

#agjCalendar-modal-background
Expand Down
17 changes: 10 additions & 7 deletions source/agjCalendar/jquery.agjCalendar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Javascript source code of agjCalendar v1.0.2.
* Javascript source code of agjCalendar v1.0.3.
*
* Copyright (c) 2013-2023 Andrew G. Johnson <andrew@andrewgjohnson.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -23,7 +23,7 @@
* @see {@link https://github.com/andrewgjohnson/agjCalendar GitHub Repository}
* @see {@link https://agjCalendar.agjjQuery.org/ Online Documentation}
* @author Andrew G. Johnson <andrew@andrewgjohnson.com>
* @version 1.0.2
* @version 1.0.3
*/

/* global jQuery */
Expand Down Expand Up @@ -2522,11 +2522,14 @@
}


agjCalendar['defaultEndDate'] = new Date(
agjCalendar['defaultDate'].getFullYear(),
agjCalendar['defaultDate'].getMonth(),
agjCalendar['defaultDate'].getDate() + agjCalendar['defaultRange']
);
agjCalendar['defaultEndDate'] =
agjCalendar['defaultDate'] === 'blank' ?
'blank' :
new Date(
agjCalendar['defaultDate'].getFullYear(),
agjCalendar['defaultDate'].getMonth(),
agjCalendar['defaultDate'].getDate() + agjCalendar['defaultRange']
);
if (
regexPatterns[4].test(options['defaultEndDate']) ||
options['defaultEndDate'] instanceof Date
Expand Down
4 changes: 2 additions & 2 deletions source/agjCalendar/jquery.agjCalendar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions source/agjCalendar/jquery.agjCalendar.min.js

Large diffs are not rendered by default.

0 comments on commit 637abd2

Please sign in to comment.