This commit is contained in:
Adam Shaw 2009-05-31 03:25:12 +00:00
parent b386089544
commit d42195cc49
5 changed files with 31 additions and 8 deletions

View file

@ -1,7 +1,6 @@
FILES =\ FILES =\
*.js\ fullcalendar\
*.css\
jquery\ jquery\
examples\ examples\
changelog.txt changelog.txt
@ -9,9 +8,32 @@ FILES =\
VER = `cat version.txt` VER = `cat version.txt`
DATE = `svn info fullcalendar.js | grep Date: | sed 's/.*: //g'` DATE = `svn info fullcalendar.js | grep Date: | sed 's/.*: //g'`
REV = `svn info fullcalendar.js | grep Rev: | sed 's/.*: //g'` REV = `svn info fullcalendar.js | grep Rev: | sed 's/.*: //g'`
hey:
@for f in fullcalendar/*.js; do echo $$f; done
zip: zip:
@mkdir -p fullcalendar @mkdir -p build/F
@cp -rt build/F ${FILES}
#@rm -rf `find build/fullcalendar -type d -name .svn`
q:
@for f in fullcalendar/*.js; do\
echo `svn info $$f`;\
done
yo:
#sed -i "s/FullCalendar/& v`cat version.txt`/" $$f;\
#sed -i "s/Date:/& `svn info $$f | grep Date: | sed 's/.*: //g'`/" $$f;\
#sed -i "s/Revision:/& `svn info $$f | grep Rev: | sed 's/.*: //g'`/" $$f;\
#@cd build/fullcalendar; zip -r fullcalendar-`cat ../../version.txt`.zip *
#@mv build/fullcalendar/fullcalendar-`cat version.txt`.zip dist
#@rm -rf build/fullcalendar
something:
@cp -rt fullcalendar ${FILES} @cp -rt fullcalendar ${FILES}
@rm -rf `find fullcalendar -type d -name .svn` @rm -rf `find fullcalendar -type d -name .svn`

View file

@ -363,12 +363,12 @@ when creating a custom event source:
Format a javascript Date object into a string. ``format`` may contain Format a javascript Date object into a string. ``format`` may contain
one or more of the following commands (similar to PHP's date function): one or more of the following commands (similar to PHP's date function):
* **Y** - Examples: 1999 or 2003
* **y** - Examples: 99 or 03
* **F** - January through December * **F** - January through December
* **M** - Jan through Dec * **M** - Jan through Dec
* **n** - 1 through 12 (month) * **n** - 1 through 12 (month)
* **m** - 01 through 12 (month, leading zeros) * **m** - 01 through 12 (month, leading zeros)
* **Y** - Examples: 1999 or 2003
* **y** - Examples: 99 or 03
* **a** - am or pm * **a** - am or pm
* **A** - AM or PM * **A** - AM or PM
* **x** - a or p * **x** - a or p

View file

@ -20,7 +20,7 @@
// //
// Calls methods of a pre-existing instance // Calls methods on a pre-existing instance
// //
if (typeof options == 'string') { if (typeof options == 'string') {
@ -30,8 +30,9 @@
var r = $.data(this, 'fullCalendar')[options].apply(this, args); var r = $.data(this, 'fullCalendar')[options].apply(this, args);
if (typeof res == 'undefined') res = r; if (typeof res == 'undefined') res = r;
}); });
if (typeof res != 'undefined') if (typeof res != 'undefined') {
return res; return res;
}
return this; return this;
} }
@ -300,7 +301,7 @@
// //
// Build the TABLE cells for the current month. (calls event fetch+render code) // Build the TABLE cells for the current month. (calls event fetching & rendering code)
// //
var thead, tbody, glass; var thead, tbody, glass;