-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Calendar rebase #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Calendar rebase #1316
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0f431a6
Datepicker: Introduce value option
fnagel 6d393ea
Calendar: Add calendar widget
fnagel 2925e71
Calendar: Add min and max option.
fnagel 69736ca
Calendar: Remove select callback reference
fnagel a6bc8b9
Datepicker: Code clean up for events
fnagel b7f5d13
Datepicker: Remove unwanted keyboard shortcut
fnagel 6fc0e99
Datepicker: Simplify usage of calendar options and avoid duplications
fnagel d8cff5e
Datepicker tests: Add open and close unit tests
fnagel 03a26ff
Datepicker: Improve document click event
fnagel d443def
Calendar: Fix broken day table cell attributes
fnagel 1c33a3a
Datepicker tests: Rewrite event unit tests
fnagel 57d86fc
Calendar: Fix multiple calendar styles
fnagel 6e57cdd
Calendar: Fix German localization
fnagel f980cb8
Datepicker: Fix localization demo
fnagel a66a8c5
Datepicker: Several minor code improvements
fnagel e32c4a7
Calendar: Fix hover event setting and removing
fnagel 34c1a32
Calendar: Improve code style and clean up
fnagel c649c85
Calendar: Focus class is not removed when using arrow keys
fnagel c34f013
Datepicker: Remove unwanted CTRL+HOME shortcut
fnagel 5182ba5
Datepicker: Remove support for enter key on input
fnagel 338baee
Datepicker: Improve localization handling, code style
fnagel a7412cf
Calendar: Add buttons option
fnagel 9cba180
Calendar: Adjust files to match reorganization of external directory
fnagel fde83f2
Datepicker tests: Remove pass-through options unit tests
fnagel 6a1e8bc
Calendar: Use _on for link hover events
fnagel 5a6596d
Datepicker: Add missing handling for disabled option
fnagel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ var | |
"core", | ||
"accordion", | ||
"autocomplete", | ||
"calendar", | ||
"button", | ||
"datepicker", | ||
"dialog", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>jQuery UI Calendar Demos</title> | ||
</head> | ||
<body> | ||
|
||
<ul> | ||
<li><a href="default.html">Default functionality</a></li> | ||
<li><a href="buttonbar.html">Display button bar</a></li> | ||
<li><a href="dropdown-month-year.html">Display month & year menus</a></li> | ||
<li><a href="localization.html">Localize calendar</a></li> | ||
<li><a href="min-max.html">Restrict date range</a></li> | ||
<li><a href="multiple-months.html">Display multiple months</a></li> | ||
<li><a href="other-months.html">Dates in other months</a></li> | ||
<li><a href="show-week.html">Show week of the year</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Calendar - Localize calendar</title> | ||
<link rel="stylesheet" href="../../themes/base/all.css"> | ||
<script src="../../external/jquery/jquery.js"></script> | ||
<script src="../../external/globalize/globalize.js"></script> | ||
<script src="../../external/date.js"></script> | ||
<script src="../../external/localization.js"></script> | ||
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/button.js"></script> | ||
<script src="../../ui/calendar.js"></script> | ||
<script src="../../ui/position.js"></script> | ||
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
var calendar = $( "#calendar" ), | ||
select = $( "#locale" ); | ||
|
||
Globalize.locale( select.val() ); | ||
calendar.calendar(); | ||
|
||
select.change( function() { | ||
Globalize.locale( $( this ).val() ); | ||
calendar.calendar( "valueAsDate", calendar.calendar( "valueAsDate" ) ); | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<div id="calendar"></div> | ||
<select id="locale"> | ||
<option value="de-DE" selected>German (Deutsch)</option> | ||
<option value="en">English</option> | ||
</select> | ||
|
||
<div class="demo-description"> | ||
<p>Localize the calendar calendar language and format (English / Western formatting is the default). The calendar includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Calendar - Display multiple months</title> | ||
<link rel="stylesheet" href="../../themes/base/all.css"> | ||
<script src="../../external/jquery/jquery.js"></script> | ||
<script src="../../external/globalize/globalize.js"></script> | ||
<script src="../../external/date.js"></script> | ||
<script src="../../external/localization.js"></script> | ||
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/button.js"></script> | ||
<script src="../../ui/calendar.js"></script> | ||
<script src="../../ui/position.js"></script> | ||
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
$( "#calendar" ).calendar({ | ||
numberOfMonths: 3 | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<div id="calendar"></div> | ||
|
||
<div class="demo-description"> | ||
<p>Set the <code>numberOfMonths</code> option to an integer of 2 or more to show multiple months in a single calendar.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the other localization demo this needs to initialize the German locale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed oth localization demos do not initialize with German locale. Problem is that Globalize is not configured on init but on select change. The selected option is German, so we need either change the selected option or init Globalize on init.
Is that what you noticed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep exactly. I'm fine with either approach, but we need to do one of those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to init Globalize on init as just changing the selected option won't help when using refresh after selecting another option.