File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Calendar math built on jquery-global
3
- *
3
+ *
4
4
* Based on Marc Grabanski's jQuery Date Plugin
5
5
* http://marcgrabanski.com/articles/jquery-date-plugin
6
6
*/
7
7
( function ( $ , undefined ) {
8
-
8
+
9
9
if ( typeof ( $ . global . culture ) == "undefined" ) {
10
10
$ . global . culture = $ . global . cultures [ "default" ] ;
11
11
}
@@ -23,16 +23,16 @@ $.date = function ( datestring, formatstring ) {
23
23
setFormat : function ( formatstring ) {
24
24
if ( formatstring ) {
25
25
format = formatstring ;
26
- }
26
+ }
27
27
return this ;
28
28
} ,
29
29
setDay : function ( day ) {
30
30
date = new Date ( date . getFullYear ( ) , date . getMonth ( ) , day ) ;
31
31
return this ;
32
32
} ,
33
33
adjust : function ( period , offset ) {
34
- var day = period == "D" ? date . getDate ( ) + offset : date . getDate ( ) ,
35
- month = period == "M" ? date . getMonth ( ) + offset : date . getMonth ( ) ,
34
+ var day = period == "D" ? date . getDate ( ) + offset : date . getDate ( ) ,
35
+ month = period == "M" ? date . getMonth ( ) + offset : date . getMonth ( ) ,
36
36
year = period == "Y" ? date . getFullYear ( ) + offset : date . getFullYear ( ) ;
37
37
date = new Date ( year , month , day ) ;
38
38
return this ;
@@ -144,4 +144,4 @@ $.date = function ( datestring, formatstring ) {
144
144
145
145
var today = $ . date ( ) ;
146
146
147
- } ( jQuery ) ) ;
147
+ } ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments