Opened 13 years ago

Closed 13 years ago

#1890 closed defect (wontfix)

ShrinkSafe appears to break this javascript file.

Reported by: guest Owned by: alex
Priority: high Milestone:
Component: BuildTools Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

Hi dojo people.

I've used this js script for quite some time, it is a good little calendar popupscript from : http://www.mattkruse.com/javascript/calendarpopup/source.html

However, after compression I receive "Line 0 Object expected"

Here is the resulting js code for comparison with matt's site.

function CalendarPopup?(){ var c; if(arguments.length>0){ c=new PopupWindow?(arguments[0]); }else{ c=new PopupWindow?(); c.setSize(150,175); } c.offsetX=-152; c.offsetY=25; c.autoHide(); c.monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December"); c.monthAbbreviations=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); c.dayHeaders=new Array("S","M","T","W","T","F","S"); c.returnFunction="CP_tmpReturnFunction"; c.returnMonthFunction="CP_tmpReturnMonthFunction"; c.returnQuarterFunction="CP_tmpReturnQuarterFunction"; c.returnYearFunction="CP_tmpReturnYearFunction"; c.weekStartDay=0; c.isShowYearNavigation=false; c.displayType="date"; c.disabledWeekDays=new Object(); c.disabledDatesExpression=""; c.yearSelectStartOffset=2; c.currentDate=null; c.todayText="Today"; c.cssPrefix=""; c.isShowNavigationDropdowns=false; c.isShowYearNavigationInput=false; window.CP_calendarObject=null; window.CP_targetInput=null; window.CP_dateFormat="MM/dd/yyyy"; c.copyMonthNamesToWindow=CP_copyMonthNamesToWindow; c.setReturnFunction=CP_setReturnFunction; c.setReturnMonthFunction=CP_setReturnMonthFunction; c.setReturnQuarterFunction=CP_setReturnQuarterFunction; c.setReturnYearFunction=CP_setReturnYearFunction; c.setMonthNames=CP_setMonthNames; c.setMonthAbbreviations=CP_setMonthAbbreviations; c.setDayHeaders=CP_setDayHeaders; c.setWeekStartDay=CP_setWeekStartDay; c.setDisplayType=CP_setDisplayType; c.setDisabledWeekDays=CP_setDisabledWeekDays; c.addDisabledDates=CP_addDisabledDates; c.setYearSelectStartOffset=CP_setYearSelectStartOffset; c.setTodayText=CP_setTodayText; c.showYearNavigation=CP_showYearNavigation; c.showCalendar=CP_showCalendar; c.hideCalendar=CP_hideCalendar; c.getStyles=getCalendarStyles; c.refreshCalendar=CP_refreshCalendar; c.getCalendar=CP_getCalendar; c.select=CP_select; c.setCssPrefix=CP_setCssPrefix; c.showNavigationDropdowns=CP_showNavigationDropdowns; c.showYearNavigationInput=CP_showYearNavigationInput; c.copyMonthNamesToWindow(); return c; } function CP_copyMonthNamesToWindow(){ if(typeof (window.MONTH_NAMES)!="undefined"&&window.MONTH_NAMES!=null){ window.MONTH_NAMES=new Array(); for(var i=0;i<this.monthNames.length;i++){ window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthNames[i]; } for(var i=0;i<this.monthAbbreviations.length;i++){ window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthAbbreviations[i]; } } } function CP_tmpReturnFunction(y,m,d){ if(window.CP_targetInput!=null){ var dt=new Date(y,m-1,d,0,0,0); if(window.CP_calendarObject!=null){ window.CP_calendarObject.copyMonthNamesToWindow(); } window.CP_targetInput.value=formatDate(dt,window.CP_dateFormat); }else{ alert("Use setReturnFunction() to define which function will get the clicked results!"); } } function CP_tmpReturnMonthFunction(y,m){ alert("Use setReturnMonthFunction() to define which function will get the clicked results! You clicked: year="+y+" , month="+m); } function CP_tmpReturnQuarterFunction(y,q){ alert("Use setReturnQuarterFunction() to define which function will get the clicked results! You clicked: year="+y+" , quarter="+q); } function CP_tmpReturnYearFunction(y){ alert("Use setReturnYearFunction() to define which function will get the clicked results! You clicked: year="+y); } function CP_setReturnFunction(_d){ this.returnFunction=_d; } function CP_setReturnMonthFunction(_e){ this.returnMonthFunction=_e; } function CP_setReturnQuarterFunction(_f){ this.returnQuarterFunction=_f; } function CP_setReturnYearFunction(_10){ this.returnYearFunction=_10; } function CP_setMonthNames(){ for(var i=0;i<arguments.length;i++){ this.monthNames[i]=arguments[i]; } this.copyMonthNamesToWindow(); } function CP_setMonthAbbreviations(){ for(var i=0;i<arguments.length;i++){ this.monthAbbreviations[i]=arguments[i]; } this.copyMonthNamesToWindow(); } function CP_setDayHeaders(){ for(var i=0;i<arguments.length;i++){ this.dayHeaders[i]=arguments[i]; } } function CP_setWeekStartDay(day){ this.weekStartDay=day; } function CP_showYearNavigation(){ this.isShowYearNavigation=(arguments.length>0)?arguments[0]:true; } function CP_setDisplayType(_15){ if(_15!="date"&&_15!="week-end"&&_15!="month"&&_15!="quarter"&&_15!="year"){ alert("Invalid display type! Must be one of: date,week-end,month,quarter,year"); return false; } this.displayType=_15; } function CP_setYearSelectStartOffset(num){ this.yearSelectStartOffset=num; } function CP_setDisabledWeekDays(){ this.disabledWeekDays=new Object(); for(var i=0;i<arguments.length;i++){ this.disabledWeekDays[arguments[i]]=true; } } function CP_addDisabledDates(_18,end){ if(arguments.length==1){ end=_18; } if(_18==null&&end==null){ return; } if(this.disabledDatesExpression!=""){

this.disabledDatesExpression+="
";

} if(_18!=null){ _18=parseDate(_18); _18=""+_18.getFullYear()+LZ(_18.getMonth()+1)+LZ(_18.getDate()); } if(end!=null){ end=parseDate(end); end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate()); } if(_18==null){ this.disabledDatesExpression+="(ds<="+end+")"; }else{ if(end==null){ this.disabledDatesExpression+="(ds>="+_18+")"; }else{ this.disabledDatesExpression+="(ds>="+_18+"&&ds<="+end+")"; } } } function CP_setTodayText(_1a){ this.todayText=_1a; } function CP_setCssPrefix(val){ this.cssPrefix=val; } function CP_showNavigationDropdowns(){ this.isShowNavigationDropdowns=(arguments.length>0)?arguments[0]:true; } function CP_showYearNavigationInput(){ this.isShowYearNavigationInput=(arguments.length>0)?arguments[0]:true; } function CP_hideCalendar(){ if(arguments.length>0){ window.popupWindowObjects[arguments[0]].hidePopup(); }else{ this.hidePopup(); } } function CP_refreshCalendar(_1c){ var _1d=window.popupWindowObjects[_1c]; if(arguments.length>1){ _1d.populate(_1d.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])); }else{ _1d.populate(_1d.getCalendar()); } _1d.refresh(); } function CP_showCalendar(_1e){ if(arguments.length>1){

if(arguments[1]==null
arguments[1]==""){

this.currentDate=new Date(); }else{ this.currentDate=new Date(parseDate(arguments[1])); } } this.populate(this.getCalendar()); this.showPopup(_1e); } function CP_select(_1f,_20,_21){ var _22=(arguments.length>3)?arguments[3]:null; if(!window.getDateFromFormat){ alert("calendar.select: To use this method you must also include 'date.js' for date formatting"); return; } if(this.displayType!="date"&&this.displayType!="week-end"){ alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'"); return; } if(_1f.type!="text"&&_1f.type!="hidden"&&_1f.type!="textarea"){ alert("calendar.select: Input object passed is not a valid form input object"); window.CP_targetInput=null; return; } if(_1f.disabled){ return; } window.CP_targetInput=_1f; window.CP_calendarObject=this; this.currentDate=null; var _23=0; if(_22!=null){ _23=getDateFromFormat(_22,_21); }else{ if(_1f.value!=""){ _23=getDateFromFormat(_1f.value,_21); } }

if(_22!=null
_1f.value!=""){

if(_23==0){ this.currentDate=null; }else{ this.currentDate=new Date(_23); } } window.CP_dateFormat=_21; this.showCalendar(_20); } function getCalendarStyles(){ var _24=""; var p=""; if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){ p=this.cssPrefix; } _24+="<STYLE> "; _24+="."+p+"cpYearNavigation,."+p+"cpMonthNavigation { background-color:#C0C0C0; text-align:center; vertical-align:center; text-decoration:none; color:#000000; font-weight:bold; } "; _24+="."+p+"cpDayColumnHeader, ."+p+"cpYearNavigation,."+p+"cpMonthNavigation,."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDateDisabled,."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDateDisabled,."+p+"cpCurrentDate,."+p+"cpCurrentDateDisabled,."+p+"cpTodayText,."+p+"cpTodayTextDisabled,."+p+"cpText { font-family:arial; font-size:8pt; } "; _24+="TD."+p+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0px 0px 1px 0px; } "; _24+="."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate { text-align:right; text-decoration:none; } "; _24+="."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; } "; _24+="."+p+"cpCurrentMonthDate, .cpCurrentDate { color:#000000; } "; _24+="."+p+"cpOtherMonthDate { color:#808080; } "; _24+="TD."+p+"cpCurrentDate { color:white; background-color: #C0C0C0; border-width:1px; border:solid thin #800000; } "; _24+="TD."+p+"cpCurrentDateDisabled { border-width:1px; border:solid thin #FFAAAA; } "; _24+="TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1px 0px 0px 0px;} "; _24+="A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled { height:20px; } "; _24+="A."+p+"cpTodayText { color:black; } "; _24+="."+p+"cpTodayTextDisabled { color:#D0D0D0; } "; _24+="."+p+"cpBorder { border:solid thin #808080; } "; _24+="</STYLE> "; return _24; } function CP_getCalendar(){ var now=new Date(); if(this.type=="WINDOW"){ var _27="window.opener."; }else{ var _28=""; } var _29=""; if(this.type=="WINDOW"){ _29+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0> "; _29+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0> "; }else{ _29+="<TABLE CLASS=""+this.cssPrefix+"cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1> "; _29+="<TR><TD ALIGN=CENTER> "; _29+="<CENTER> "; }

if(this.displayType=="date"
this.displayType=="week-end"){

if(this.currentDate==null){ this.currentDate=now; } if(arguments.length>0){ var _2a=arguments[0]; }else{ var _2b=this.currentDate.getMonth()+1; } if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){ var _2c=arguments[1]; }else{ var _2d=this.currentDate.getFullYear(); } var _2e=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);

if(((_2d%4==0)&&(_2d%100!=0))
(_2d%400==0)){

_2e[2]=29; } var _2f=new Date(_2d,_2b-1,1); var _30=_2d; var _31=_2b; var _32=1; var _33=_2f.getDay(); var _34=0; _34=(_33>=this.weekStartDay)?_33-this.weekStartDay:7-this.weekStartDay+_33; if(_34>0){ _31--; if(_31<1){ _31=12; _30--; } _32=_2e[_31]-_34+1; } var _35=_2b+1; var _36=_2d; if(_35>12){ _35=1; _36++; } var _37=_2b-1; var _38=_2d; if(_37<1){ _37=12; _38--; } var _39; if(this.type!="WINDOW"){ _29+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"; } _29+="<TR> "; var _3a=_28+"CP_refreshCalendar"; var _3b="javascript:"+_3a; if(this.isShowNavigationDropdowns){ _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS=""+this.cssPrefix+"cpMonthNavigation" name="cpMonth" onChange=""+_3a+"("+this.index+",this.options[this.selectedIndex].value-0,"+(_2d-0)+");">"; for(var _3c=1;_3c<=12;_3c++){ var _3d=(_3c==_2b)?"SELECTED":""; _29+="<option value=""+_3c+"" "+_3d+">"+this.monthNames[_3c-1]+"</option>"; } _29+="</select></TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="10">&nbsp;</TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS=""+this.cssPrefix+"cpYearNavigation" name="cpYear" onChange=""+_3a+"("+this.index+","+_2b+",this.options[this.selectedIndex].value-0);">"; for(var _3e=_2d-this.yearSelectStartOffset;_3e<=_2d+this.yearSelectStartOffset;_3e++){ var _3f=(_3e==_2d)?"SELECTED":""; _29+="<option value=""+_3e+"" "+_3f+">"+_3e+"</option>"; } _29+="</select></TD>"; }else{ if(this.isShowYearNavigation){ _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="10"><A CLASS=""+this.cssPrefix+"cpMonthNavigation" HREF=""+_3b+"("+this.index+","+_37+","+_38+");">&lt;</A></TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="58"><SPAN CLASS=""+this.cssPrefix+"cpMonthNavigation">"+this.monthNames[_2b-1]+"</SPAN></TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="10"><A CLASS=""+this.cssPrefix+"cpMonthNavigation" HREF=""+_3b+"("+this.index+","+_35+","+_36+");">&gt;</A></TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="10">&nbsp;</TD>"; _29+="<TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="10"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF=""+_3b+"("+this.index+","+_2b+","+(_2d-1)+");">&lt;</A></TD>"; if(this.isShowYearNavigationInput){ _29+="<TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS=""+this.cssPrefix+"cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE=""+_2d+"" onBlur=""+_3a+"("+this.index+","+_2b+",this.value-0);"></TD>"; }else{ _29+="<TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="36"><SPAN CLASS=""+this.cssPrefix+"cpYearNavigation">"+_2d+"</SPAN></TD>"; } _29+="<TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="10"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF=""+_3b+"("+this.index+","+_2b+","+(_2d+1)+");">&gt;</A></TD>"; }else{ _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="22"><A CLASS=""+this.cssPrefix+"cpMonthNavigation" HREF=""+_3b+"("+this.index+","+_37+","+_38+");">&lt;&lt;</A></TD> "; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="100"><SPAN CLASS=""+this.cssPrefix+"cpMonthNavigation">"+this.monthNames[_2b-1]+" "+_2d+"</SPAN></TD> "; _29+="<TD CLASS=""+this.cssPrefix+"cpMonthNavigation" WIDTH="22"><A CLASS=""+this.cssPrefix+"cpMonthNavigation" HREF=""+_3b+"("+this.index+","+_35+","+_36+");">&gt;&gt;</A></TD> "; } } _29+="</TR></TABLE> "; _29+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER> "; _29+="<TR> "; for(var j=0;j<7;j++){ _29+="<TD CLASS=""+this.cssPrefix+"cpDayColumnHeader" WIDTH="14%"><SPAN CLASS=""+this.cssPrefix+"cpDayColumnHeader">"+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD> "; } _29+="</TR> "; for(var row=1;row<=6;row++){ _29+="<TR> "; for(var col=1;col<=7;col++){ var _43=false; if(this.disabledDatesExpression!=""){ var ds=""+_30+LZ(_31)+LZ(_32); eval("disabled=("+this.disabledDatesExpression+")"); } var _45=""; if((_31==this.currentDate.getMonth()+1)&&(_32==this.currentDate.getDate())&&(_30==this.currentDate.getFullYear())){ _45="cpCurrentDate"; }else{ if(_31==_2b){ _45="cpCurrentMonthDate"; }else{ _45="cpOtherMonthDate"; } }

if(_43
this.disabledWeekDays[col-1]){

_29+=" <TD CLASS=""+this.cssPrefix+_45+""><SPAN CLASS=""+this.cssPrefix+_45+"Disabled">"+_32+"</SPAN></TD> "; }else{ var _46=_32; var _47=_31; var _48=_30; if(this.displayType=="week-end"){ var d=new Date(_48,_47-1,_46,0,0,0,0); d.setDate(d.getDate()+(7-col)); _48=d.getYear(); if(_48<1000){ _48+=1900; } _47=d.getMonth()+1; _46=d.getDate(); } _29+=" <TD CLASS=""+this.cssPrefix+_45+""><A HREF="javascript:"+_28+this.returnFunction+"("+_48+","+_47+","+_46+");"+_28+"CP_hideCalendar('"+this.index+"');" CLASS=""+this.cssPrefix+_45+"">"+_32+"</A></TD> "; } _32++; if(_32>_2e[_31]){ _32=1; _31++; } if(_31>12){ _31=1; _30++; } } _29+="</TR>"; } var _4a=now.getDay()-this.weekStartDay; if(_4a<0){ _4a+=7; } _29+="<TR> "; _29+=" <TD COLSPAN=7 ALIGN=CENTER CLASS=""+this.cssPrefix+"cpTodayText"> "; if(this.disabledDatesExpression!=""){ var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate()); eval("disabled=("+this.disabledDatesExpression+")"); }

if(_43
this.disabledWeekDays[_4a+1]){

_29+=" <SPAN CLASS=""+this.cssPrefix+"cpTodayTextDisabled">"+this.todayText+"</SPAN> "; }else{ _29+=" <A CLASS=""+this.cssPrefix+"cpTodayText" HREF="javascript:"+_28+this.returnFunction+"('"+now.getFullYear()+"','"+(now.getMonth()+1)+"','"+now.getDate()+"');"+_28+"CP_hideCalendar('"+this.index+"');">"+this.todayText+"</A> "; } _29+=" <BR> "; _29+=" </TD></TR></TABLE></CENTER></TD></TR></TABLE> "; }

if(this.displayType=="month"
this.displayType=="quarter"this.displayType=="year"){

if(arguments.length>0){ var _4c=arguments[0]; }else{ if(this.displayType=="year"){ var _4d=now.getFullYear()-this.yearSelectStartOffset; }else{ var _4e=now.getFullYear(); } } if(this.displayType!="year"&&this.isShowYearNavigation){ _29+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"; _29+="<TR> "; _29+=" <TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="22"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF="javascript:"+_28+"CP_refreshCalendar("+this.index+","+(_4e-1)+");">&lt;&lt;</A></TD> "; _29+=" <TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="100">"+_4e+"</TD> "; _29+=" <TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="22"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF="javascript:"+_28+"CP_refreshCalendar("+this.index+","+(_4e+1)+");">&gt;&gt;</A></TD> "; _29+="</TR></TABLE> "; } } if(this.displayType=="month"){ _29+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER> "; for(var i=0;i<4;i++){ _29+="<TR>"; for(var j=0;j<3;j++){ var _51=((i*3)+j); _29+="<TD WIDTH=33% ALIGN=CENTER><A CLASS=""+this.cssPrefix+"cpText" HREF="javascript:"+_28+this.returnMonthFunction+"("+_4e+","+(_51+1)+");"+_28+"CP_hideCalendar('"+this.index+"');" CLASS=""+_39+"">"+this.monthAbbreviations[_51]+"</A></TD>"; } _29+="</TR>"; } _29+="</TABLE></CENTER></TD></TR></TABLE> "; } if(this.displayType=="quarter"){ _29+="<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER> "; for(var i=0;i<2;i++){ _29+="<TR>"; for(var j=0;j<2;j++){ var _54=((i*2)+j+1); _29+="<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS=""+this.cssPrefix+"cpText" HREF="javascript:"+_28+this.returnQuarterFunction+"("+_4e+","+_54+");"+_28+"CP_hideCalendar('"+this.index+"');" CLASS=""+_39+"">Q"+_54+"</A><BR><BR></TD>"; } _29+="</TR>"; } _29+="</TABLE></CENTER></TD></TR></TABLE> "; } if(this.displayType=="year"){ var _55=4; _29+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"; _29+="<TR> "; _29+=" <TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="50%"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF="javascript:"+_28+"CP_refreshCalendar("+this.index+","+(_4e-(_55*2))+");">&lt;&lt;</A></TD> "; _29+=" <TD CLASS=""+this.cssPrefix+"cpYearNavigation" WIDTH="50%"><A CLASS=""+this.cssPrefix+"cpYearNavigation" HREF="javascript:"+_28+"CP_refreshCalendar("+this.index+","+(_4e+(_55*2))+");">&gt;&gt;</A></TD> "; _29+="</TR></TABLE> "; _29+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER> "; for(var i=0;i<_55;i++){ for(var j=0;j<2;j++){ var _58=_4e+(j*_55)+i; _29+="<TD WIDTH=50% ALIGN=CENTER><A CLASS=""+this.cssPrefix+"cpText" HREF="javascript:"+_28+this.returnYearFunction+"("+_58+");"+_28+"CP_hideCalendar('"+this.index+"');" CLASS=""+_39+"">"+_58+"</A></TD>"; } _29+="</TR>"; } _29+="</TABLE></CENTER></TD></TR></TABLE> "; } if(this.type=="WINDOW"){ _29+="</BODY></HTML> "; } return _29; }

Change History (1)

comment:1 Changed 13 years ago by jkuhnert

Resolution: wontfix
Status: newclosed

The ticket is appreciated, but there's no way I'm going through a file that big line by line without someone else showing some effort first.

I would try breaking the compressed file down on to a few more lines until you pinpoint exactly where the syntax error happens. More than likely it's not actually a bug with the compressor but more that the original script "happened" to work with forgiving browsers because of white space/new lines .

If you can break this down to a very specific block then please feel free to re-open.

Note: See TracTickets for help on using tickets.