Skip to content

Commit

Permalink
day3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pec1985 committed Nov 24, 2010
2 parents e66e433 + 7e760bd commit 067c1e8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Resources/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dayView = function(e){

// -------------------main calendar function, this is EVERYTHING!! ha ha-------------------
var calView = function(a,b,c){
<<<<<<< HEAD
switch(b){
case 0: monthTitle.text='January '+a; break;
case 1: monthTitle.text='February '+a; break;
Expand All @@ -59,6 +60,25 @@ var calView = function(a,b,c){
case 10: monthTitle.text='November '+a; break;
case 11: monthTitle.text='December '+a; break;
};
=======
var month = b;
var year = a;
if(b > 11){ month = b-12;year = a+1;}
if(b < 0){ month = b+12;year = a-1;}

if(month==0){monthTitle.text='January';}
if(month==1){monthTitle.text='February';}
if(month==2){monthTitle.text='March';}
if(month==3){monthTitle.text='April';}
if(month==4){monthTitle.text='May';}
if(month==5){monthTitle.text='June';}
if(month==6){monthTitle.text='July';}
if(month==7){monthTitle.text='Augost';}
if(month==8){monthTitle.text='September';}
if(month==9){monthTitle.text='October';}
if(month==10){monthTitle.text='November';}
if(month==11){monthTitle.text='December';}
>>>>>>> origin/master
//create main calendar view
var mainView = Ti.UI.createView({layout:'horizontal',backgroundColor:'#DCDCDF',width:322,height:'auto',left:-1,top:0});
//set the time
Expand Down

0 comments on commit 067c1e8

Please sign in to comment.