Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Wood committed May 25, 2013
1 parent fc2220a commit 67263f9
Show file tree
Hide file tree
Showing 72 changed files with 785 additions and 91 deletions.
7 changes: 5 additions & 2 deletions calendarsBasic.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
<script type="text/javascript" src="jquery.calendars.julian.js"></script>
<script type="text/javascript" src="jquery.calendars.persian.js"></script>
<script type="text/javascript" src="jquery.calendars.islamic.js"></script>
<script type="text/javascript" src="jquery.calendars.ummalqura.js"></script>
<script type="text/javascript" src="jquery.calendars.hebrew.js"></script>
<script type="text/javascript" src="jquery.calendars.coptic.js"></script>
<script type="text/javascript" src="jquery.calendars.ethiopian.js"></script>
<script type="text/javascript" src="jquery.calendars.nepali.js"></script>
<script type="text/javascript" src="jquery.calendars.mayan.js"></script>
<script type="text/javascript">
$(function() {
Expand Down Expand Up @@ -45,8 +47,9 @@ <h1>jQuery Calendars</h1>
<option value="gregorian">Gregorian</option><option value="taiwan">Taiwan</option>
<option value="thai">Thai</option><option value="julian">Julian</option>
<option value="persian">Persian</option><option value="islamic">Islamic</option>
<option value="hebrew">Hebrew</option><option value="coptic">Coptic</option>
<option value="ethiopian">Ethiopian</option><option value="mayan">Mayan</option></select></p>
<option value="ummalqura">Umm al-Qura</option><option value="hebrew">Hebrew</option>
<option value="coptic">Coptic</option><option value="ethiopian">Ethiopian</option>
<option value="nepali">Nepali</option><option value="mayan">Mayan</option></select></p>
<p>Enter a date: <input type="text" id="input" value="01/26/2009"> (<span id="default"></span>)</p>
<p>Check and format: <input type="text" id="format" value="DD, MM d, yyyy">
<button type="button" id="check">Format</button></p>
Expand Down
2 changes: 1 addition & 1 deletion flora.calendars.picker.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Flora styling for jQuery Calendars Picker v1.2.0. */
/* Flora styling for jQuery Calendars Picker v1.2.1. */
.calendars {
background-color: #e0f4d7;
color: #000;
Expand Down
2 changes: 1 addition & 1 deletion humanity.calendars.picker.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Humanity styling for jQuery Calendars Picker v1.2.0. */
/* Humanity styling for jQuery Calendars Picker v1.2.1. */
.calendars {
background-color: #f4f0ec;
color: #1e1b1c;
Expand Down
19 changes: 6 additions & 13 deletions jquery.calendars.all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Calendars for jQuery v1.2.0.
Calendars for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down Expand Up @@ -476,7 +476,7 @@ $.extend(BaseCalendar.prototype, {
while (m < calendar.minMonth) {
y--;
m += calendar.monthsInYear(y);
}
}
var yearMonths = calendar.monthsInYear(y);
while (m > yearMonths - 1 + calendar.minMonth) {
y++;
Expand Down Expand Up @@ -786,7 +786,7 @@ $.calendars.calendars.gregorian = GregorianCalendar;

})(jQuery);
/* http://keith-wood.name/calendars.html
Calendars extras for jQuery v1.2.0.
Calendars extras for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down Expand Up @@ -1162,7 +1162,7 @@ $.extend($.calendars.baseCalendar.prototype, {

})(jQuery);
/* http://keith-wood.name/calendars.html
Calendars date picker for jQuery v1.2.0.
Calendars date picker for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down Expand Up @@ -1762,8 +1762,6 @@ $.extend(CalendarsPicker.prototype, {
// And display
var showAnim = inst.options.showAnim;
var showSpeed = inst.options.showSpeed;
showSpeed = (showSpeed == 'normal' && $.ui && $.ui.version >= '1.8' ?
'_default' : showSpeed);
if ($.effects && $.effects[showAnim]) {
var data = inst.div.data(); // Update old effects data
for (var key in data) {
Expand All @@ -1774,7 +1772,7 @@ $.extend(CalendarsPicker.prototype, {
inst.div.data(data).show(showAnim, inst.options.showOptions, showSpeed);
}
else {
inst.div[showAnim || 'show'](showAnim ? showSpeed : null);
inst.div[showAnim || 'show'](showAnim ? showSpeed : 0);
}
}
},
Expand Down Expand Up @@ -1973,8 +1971,6 @@ $.extend(CalendarsPicker.prototype, {
if (inst && inst == plugin.curInst) {
var showAnim = (immediate ? '' : inst.options.showAnim);
var showSpeed = inst.options.showSpeed;
showSpeed = (showSpeed == 'normal' && $.ui && $.ui.version >= '1.8' ?
'_default' : showSpeed);
var postProcess = function() {
if (!inst.div) {
return;
Expand All @@ -1993,10 +1989,7 @@ $.extend(CalendarsPicker.prototype, {
else {
var hideAnim = (showAnim == 'slideDown' ? 'slideUp' :
(showAnim == 'fadeIn' ? 'fadeOut' : 'hide'));
inst.div[hideAnim]((showAnim ? showSpeed : null), postProcess);
}
if (!showAnim) {
postProcess();
inst.div[hideAnim]((showAnim ? showSpeed : 0), postProcess);
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions jquery.calendars.all.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions jquery.calendars.coptic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Coptic calendar for jQuery v1.2.0.
Coptic calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) February 2010.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down Expand Up @@ -39,7 +39,9 @@ $.extend(CopticCalendar.prototype, {
dayNamesMin: ['Tk', 'Pes', 'Psh', 'Pef', 'Pt', 'Pso', 'Psa'],
dateFormat: 'dd/mm/yyyy', // See format options on BaseCalendar.formatDate
firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
isRTL: false // True if right-to-left language, false if left-to-right
isRTL: false, // True if right-to-left language, false if left-to-right
showMonthAfterYear: false, // True if the year select precedes month, false for month then year
yearSuffix: '' // Additional text to append to the year in the month headers
}
},

Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.coptic.min.js

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

2 changes: 1 addition & 1 deletion jquery.calendars.ethiopian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Ethiopian calendar for jQuery v1.2.0.
Ethiopian calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) February 2010.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.ethiopian.min.js

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

2 changes: 1 addition & 1 deletion jquery.calendars.hebrew.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Hebrew calendar for jQuery v1.2.0.
Hebrew calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.hebrew.min.js

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

2 changes: 1 addition & 1 deletion jquery.calendars.islamic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Islamic calendar for jQuery v1.2.0.
Islamic calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.islamic.min.js

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

4 changes: 2 additions & 2 deletions jquery.calendars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Calendars for jQuery v1.2.0.
Calendars for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down Expand Up @@ -476,7 +476,7 @@ $.extend(BaseCalendar.prototype, {
while (m < calendar.minMonth) {
y--;
m += calendar.monthsInYear(y);
}
}
var yearMonths = calendar.monthsInYear(y);
while (m > yearMonths - 1 + calendar.minMonth) {
y++;
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.julian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Julian calendar for jQuery v1.2.0.
Julian calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.julian.min.js

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

5 changes: 5 additions & 0 deletions jquery.calendars.lang.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* http://keith-wood.name/calendars.html
Calendars localisations for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
/* http://keith-wood.name/calendars.html
Afrikaans localisation for Gregorian/Julian calendars for jQuery.
Written by Renier Pretorius and Ruediger Thiede. */
(function($) {
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.lang.min.js

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

2 changes: 1 addition & 1 deletion jquery.calendars.mayan.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://keith-wood.name/calendars.html
Mayan calendar for jQuery v1.2.0.
Mayan calendar for jQuery v1.2.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2009.
Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
Please attribute the author if you use it. */
Expand Down
2 changes: 1 addition & 1 deletion jquery.calendars.mayan.min.js

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

2 changes: 1 addition & 1 deletion jquery.calendars.min.js

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

18 changes: 18 additions & 0 deletions jquery.calendars.nepali-ne.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* http://keith-wood.name/calendars.html
Nepali localisation for Nepali calendar for jQuery.
Written by Artur Neumann (ict.projects{at}nepal.inf.org) April 2013. */
(function($) {
$.calendars.calendars.nepali.prototype.regional['ne'] = {
name: 'Nepali', // The calendar name
epochs: ['BBS', 'ABS'],
monthNames: ['बैशाख', 'जेष्ठ', 'आषाढ', 'श्रावण', 'भाद्र', 'आश्विन', 'कार्तिक', 'मंसिर', 'पौष', 'माघ', 'फाल्गुन', 'चैत्र'],
monthNamesShort: ['बै', 'जे', 'आषा', 'श्रा', 'भा', 'आश', 'का', 'मं', 'पौ', 'मा', 'फा', 'चै'],
dayNames: ['आइतवार', 'सोमवार', 'मगलवार', 'बुधवार', 'बिहिवार', 'शुक्रवार', 'शनिवार'],
dayNamesShort: ['आइत', 'सोम', 'मगल', 'बुध', 'बिहि', 'शुक्र', 'शनि'],
dayNamesMin: ['आ', 'सो', 'म', 'बु', 'बि', 'शु', 'श'],
dateFormat: 'dd/mm/yyyy', // See format options on BaseCalendar.formatDate
firstDay: 1, // The first day of the week, Sun = 0, Mon = 1, ...
isRTL: false, // True if right-to-left language, false if left-to-right
showMonthAfterYear: false // True if the year select precedes month, false for month then year
};
})(jQuery);
Loading

0 comments on commit 67263f9

Please sign in to comment.