Produced by Araxis Merge on 2/1/2017 2:57:42 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\Areas\EntityList\js | calendar.min.js | Tue Dec 20 19:50:57 2016 UTC |
| 2 | Wed Feb 1 19:57:42 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 13 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |||||
| 2 | Bootstrap Calendar | |||||
| 3 | Copyright (c) 2013 S ergey Roma nov | |||||
| 4 | ||||||
| 5 | Permission is hereby granted, free of ch arge, to a ny person obtaining a copy of this softw are and as sociated d ocumentati on files ( the "Softw are"), to deal in th e Software without r estriction , includin g without limitation the right s to use, copy, modi fy, merge, publish, distribute , sublicen se, and/or sell copi es of the Software, and to per mit person s to whom the Softwa re is furn ished to d o so, subj ect to the following condition s: | |||||
| 6 | ||||||
| 7 | The above copyright notice and this perm ission not ice shall be include d in all c opies or s ubstantial portions of the Sof tware. | |||||
| 8 | ||||||
| 9 | THE SOFTWA RE IS PROV IDED "AS I S", WITHOU T WARRANTY OF ANY KI ND, EXPRES S OR IMPLI ED, INCLUD ING BUT NO T LIMITED TO THE WAR RANTIES OF MERCHANTA BILITY, FI TNESS FOR A PARTICUL AR PURPOSE AND NONIN FRINGEMENT . IN NO EV ENT SHALL THE AUTHOR S OR COPYR IGHT HOLDE RS BE LIAB LE FOR ANY CLAIM, DA MAGES OR O THER LIABI LITY, WHET HER IN AN ACTION OF CONTRACT, TORT OR OT HERWISE, A RISING FRO M, OUT OF OR IN CONN ECTION WIT H THE SOFT WARE OR TH E USE OR O THER DEALI NGS IN THE SOFTWARE. | |||||
| 10 | ||||||
| 11 | https://gi thub.com/S erhioroman o/bootstra p-calendar | |||||
| 12 | */ | |||||
| 13 | "use stric t";Date.pr ototype.ge tWeek=func tion(){var t=new Dat e(this.get FullYear() ,0,1);retu rn Math.ce il(((this. getTime()- t.getTime( ))/864e5+t .getDay()+ 1)/7)},Dat e.prototyp e.getMonth Formatted= function() {var t=thi s.getMonth ()+1;retur n 10>t?"0" +t:t},Date .prototype .getDateFo rmatted=fu nction(){v ar t=this. getDate(); return 10> t?"0"+t:t} ,String.pr ototype.fo rmat||(Str ing.protot ype.format =function( ){var t=ar guments;re turn this. replace(/{ (\d+)}/g,f unction(e, a){return" undefined" !=typeof t [a]?t[a]:e })}),Strin g.prototyp e.formatNu m||(String .prototype .formatNum =function( t){for(var e=""+this ;e.length< t;)e="0"+e ;return e} ),function (t){functi on e(t,e){ var a,o,n; n=t,a=t.in dexOf("?") <0?"?":"&" ;for(o in e)n+=a+o+" ="+encodeU RIComponen t(e[o]),a= "&";return n}functio n a(e,a){v ar o=null! =e.options [a]?e.opti ons[a]:nul l,n=null!= e.locale[a ]?e.locale [a]:null;i f("holiday s"==a&&e.o ptions.mer ge_holiday s){var i={ };return t .extend(!0 ,i,n?n:d.h olidays),o &&t.extend (!0,i,o),i }return nu ll!=o?o:nu ll!=n?n:d[ a]}functio n o(e,i){v ar s=[],l= a(e,"holid ays");for( var d in l )s.push(d+ ":"+l[d]); if(s.push( i),s=s.joi n("|"),s i n o.cache) return o.c ache[s];va r h=[];ret urn t.each (l,functio n(e,a){var o=null,s= null,l=!1; if(t.each( e.split("> "),functio n(t,a){var d,h=null; if(d=/^(\d \d)-(\d\d) $/.exec(a) )h=new Dat e(i,parseI nt(d[2],10 )-1,parseI nt(d[1],10 ));else if (d=/^(\d\d )-(\d\d)-( \d\d\d\d)$ /.exec(a)) parseInt(d [3],10)==i &&(h=new D ate(i,pars eInt(d[2], 10)-1,pars eInt(d[1], 10)));else if(d=/^ea ster(([+\- ])(\d+))?$ /.exec(a)) h=r(i,d[1] ?parseInt( d[1],10):0 );else if( d=/^(\d\d) ([+\-])([1 -5])\*([0- 6])$/.exec (a)){var p =parseInt( d[1],10)-1 ,c=d[2],u= parseInt(d [3]),m=par seInt(d[4] );switch(c ){case"+": for(var y= new Date(i ,p,-6);y.g etDay()!=m ;)y=new Da te(y.getFu llYear(),y .getMonth( ),y.getDat e()+1);h=n ew Date(y. getFullYea r(),y.getM onth(),y.g etDate()+7 *u);break; case"-":fo r(var y=ne w Date(i,p +1,7);y.ge tDay()!=m; )y=new Dat e(y.getFul lYear(),y. getMonth() ,y.getDate ()-1);h=ne w Date(y.g etFullYear (),y.getMo nth(),y.ge tDate()-7* u)}}if(!h) return n(" Unknown ho liday: "+e ),l=!0,!1; switch(t){ case 0:o=h ;break;cas e 1:if(h.g etTime()<= o.getTime( ))return n ("Unknown holiday: " +e),l=!0,! 1;s=h;brea k;default: return n(" Unknown ho liday: "+e ),l=!0,!1} }),!l){var d=[];if(s )for(var p =new Date( o.getTime( ));p.getTi me()<=s.ge tTime();p. setDate(p. getDate()+ 1))d.push( new Date(p .getTime() ));else d. push(o);h. push({name :a,days:d} )}}),o.cac he[s]=h,o. cache[s]}f unction n( e){"object "==t.type( window.con sole)&&"fu nction"==t .type(wind ow.console .warn)&&wi ndow.conso le.warn("[ Bootstrap- Calendar] "+e)}funct ion i(e,a) {return th is.options =t.extend( !0,{positi on:{start: new Date,e nd:new Dat e}},l,e),t his.setLan guage(this .options.l anguage),t his.contex t=a,a.css( "width",th is.options .width).ad dClass("ca l-context" ),this.vie w(),this}f unction s( e,a,o,n){e .stopPropa gation();v ar a=t(a), i=a.closes t(".cal-ce ll"),s=i.c losest(".c al-before- eventlist" ),r=i.data ("cal-row" );a.fadeOu t("fast"), o.slideUp( "fast",fun ction(){va r e=t(".ev ents-list" ,i);o.html (n.options .templates ["events-l ist"]({cal :n,events: n.getEvent sBetween(p arseInt(e. data("cal- start")),p arseInt(e. data("cal- end")))})) ,s.after(o ),n.active cell=t("[d ata-cal-da te]",i).te xt(),t("#c al-slide-t ick").addC lass("tick "+r).show( ),o.slideD own("fast" ,function( ){t("body" ).one("cli ck",functi on(){o.sli deUp("fast "),n.activ ecell=0})} )}),setTim eout(funct ion(){t("a .event-ite m").mousee nter(funct ion(){t('a [data-even t-id="'+t( this).data ("event-id ")+'"]').c losest(".c al-cell1") .addClass( "day-highl ight dh-"+ t(this).da ta("event- class"))}) ,t("a.even t-item").m ouseleave( function() {t("div.ca l-cell1"). removeClas s("day-hig hlight dh- "+t(this). data("even t-class")) }),n._upda te_modal() },400)}fun ction r(t, e){var a=t %19,o=Math .floor(t/1 00),n=t%10 0,i=Math.f loor(o/4), s=o%4,r=Ma th.floor(( o+8)/25),l =Math.floo r((o-r+1)/ 3),d=(19*a +o-i-l+15) %30,h=Math .floor(n/4 ),p=n%4,c= (32+2*s+2* h-d-p)%7,u =Math.floo r((a+11*d+ 22*c)/451) ,m=d+c+7*u +114,y=Mat h.floor(m/ 31)-1,f=m% 31+1;retur n new Date (t,y,f+(e? e:0),0,0,0 )}var l={w idth:"100% ",view:"mo nth",day:" now",time_ start:"06: 00",time_e nd:"22:00" ,time_spli t:"30",eve nts_source :"",tmpl_p ath:"tmpls /",tmpl_ca che:!0,cla sses:{mont hs:{inmont h:"cal-day -inmonth", outmonth:" cal-day-ou tmonth",sa turday:"ca l-day-week end",sunda y:"cal-day -weekend", holidays:" cal-day-ho liday",tod ay:"cal-da y-today"}, week:{work day:"cal-d ay-workday ",saturday :"cal-day- weekend",s unday:"cal -day-weeke nd",holida ys:"cal-da y-holiday" ,today:"ca l-day-toda y"}},modal :null,moda l_type:"if rame",moda l_title:nu ll,views:{ year:{slid e_events:1 ,enable:1} ,month:{sl ide_events :1,enable: 1},week:{e nable:1},d ay:{enable :1}},merge _holidays: !1,onAfter EventsLoad :function( ){},onBefo reEventsLo ad:functio n(t){t()}, onAfterVie wLoad:func tion(){},o nAfterModa lShown:fun ction(){}, onAfterMod alHidden:f unction(){ },events:[ ],template s:{year:"" ,month:"", week:"",da y:""},stop _cycling:! 1},d={firs t_day:2,ho lidays:{"0 1-01":"New Year's Da y","01+3*1 ":"Birthda y of Dr. M artin Luth er King, J r.","02+3* 1":"Washin gton's Bir thday","05 -1*1":"Mem orial Day" ,"04-07":" Independen ce Day","0 9+1*1":"La bor Day"," 10+2*1":"C olumbus Da y","11-11" :"Veterans Day","11+ 4*4":"Than ksgiving D ay","25-12 ":"Christm as"}},h={e rror_novie w:"Calenda r: View {0 } not foun d",error_d ateformat: 'Calendar: Wrong dat e format { 0}. Should be either "now" or "yyyy-mm-d d"',error_ loadurl:"C alendar: E vent URL i s not set" ,error_whe re:'Calend ar: Wrong navigation direction {0}. Can be only "n ext" or "p rev" or "t oday"',err or_timedev ide:"Calen dar: Time split para meter shou ld divide 60 without decimals. Something like 10, 15, 30",no _events_in _day:"No e vents in t his day.", title_year :"{0}",tit le_month:" {0} {1}",t itle_week: "week {0} of {1}",ti tle_day:"{ 0} {1} {2} , {3}",wee k:"Week {0 }",all_day :"All day" ,time:"Tim e",events: "Events",b efore_time :"Ends bef ore timeli ne",after_ time:"Star ts after t imeline",m 0:"January ",m1:"Febr uary",m2:" March",m3: "April",m4 :"May",m5: "June",m6: "July",m7: "August",m 8:"Septemb er",m9:"Oc tober",m10 :"November ",m11:"Dec ember",ms0 :"Jan",ms1 :"Feb",ms2 :"Mar",ms3 :"Apr",ms4 :"May",ms5 :"Jun",ms6 :"Jul",ms7 :"Aug",ms8 :"Sep",ms9 :"Oct",ms1 0:"Nov",ms 11:"Dec",d 0:"Sunday" ,d1:"Monda y",d2:"Tue sday",d3:" Wednesday" ,d4:"Thurs day",d5:"F riday",d6: "Saturday" },p="";try {"object"= =t.type(wi ndow.jstz) &&"functio n"==t.type (jstz.dete rmine)&&(p =jstz.dete rmine().na me(),"stri ng"!==t.ty pe(p)&&(p= ""))}catch (c){}o.cac he={},i.pr ototype.se tOptions=f unction(e) {t.extend( this.optio ns,e),"lan guage"in e &&this.set Language(e .language) ,"modal"in e&&this._ update_mod al()},i.pr ototype.se tLanguage= function(e ){window.c alendar_la nguages&&e in window .calendar_ languages? (this.loca le=t.exten d(!0,{},h, calendar_l anguages[e ]),this.op tions.lang uage=e):(t his.locale =h,delete this.optio ns.languag e)},i.prot otype._ren der=functi on(){this. context.ht ml(""),thi s._loadTem plate(this .options.v iew),this. stop_cycli ng=!1;var t={};t.cal =this,t.da y=1,t.days _name=1==a (this,"fir st_day")?[ this.local e.d1,this. locale.d2, this.local e.d3,this. locale.d4, this.local e.d5,this. locale.d6, this.local e.d0]:[thi s.locale.d 0,this.loc ale.d1,thi s.locale.d 2,this.loc ale.d3,thi s.locale.d 4,this.loc ale.d5,thi s.locale.d 6];var e=p arseInt(th is.options .position. start.getT ime()),o=p arseInt(th is.options .position. end.getTim e());switc h(t.events =this.getE ventsBetwe en(e,o),th is.options .view){cas e"month":b reak;case" week":this ._calculat e_hour_min utes(t);br eak;case"d ay":this._ calculate_ hour_minut es(t)}t.st art=new Da te(this.op tions.posi tion.start .getTime() ),t.lang=t his.locale ,this.cont ext.append (this.opti ons.templa tes[this.o ptions.vie w](t)),thi s._update( )},i.proto type._calc ulate_hour _minutes=f unction(e) {var a=thi s,o=parseI nt(this.op tions.time _split),i= 60/o,s=Mat h.min(i,1) ;(i>=1&&i% 1!=0||1>i& &1440/o%1! =0)&&t.err or(this.lo cale.error _timedevid e);var r=t his.option s.time_sta rt.split(" :"),l=this .options.t ime_end.sp lit(":");e .hours=(pa rseInt(l[0 ])-parseIn t(r[0]))*s ;var d=e.h ours*i-par seInt(r[1] )/o,h=6e4* o,p=new Da te(this.op tions.posi tion.start .getTime() );p.setHou rs(r[0]),p .setMinute s(r[1]);va r c=new Da te(this.op tions.posi tion.end.g etTime()); c.setHours (l[0]),c.s etMinutes( l[1]),e.al l_day=[],e .by_hour=[ ],e.after_ time=[],e. before_tim e=[],t.eac h(e.events ,function( t,o){var i =new Date( parseInt(o .start)),s =new Date( parseInt(o .end));if( o.start_ho ur=i.getHo urs().toSt ring().for matNum(2)+ ":"+i.getM inutes().t oString(). formatNum( 2),o.end_h our=s.getH ours().toS tring().fo rmatNum(2) +":"+s.get Minutes(). toString() .formatNum (2),o.star t<p.getTim e()&&(n(1) ,o.start_h our=i.getD ate()+" "+ a.locale[" ms"+i.getM onth()]+" "+o.start_ hour),o.en d>c.getTim e()&&(n(1) ,o.end_hou r=s.getDat e()+" "+a. locale["ms "+s.getMon th()]+" "+ o.end_hour ),o.start< p.getTime( )&&o.end>c .getTime() )return vo id e.all_d ay.push(o) ;if(o.end< p.getTime( ))return v oid e.befo re_time.pu sh(o);if(o .start>c.g etTime())r eturn void e.after_t ime.push(o );var r=p. getTime()- o.start;o. top=r>=0?0 :Math.abs( r)/h;var l =Math.abs( d-o.top),u =(o.end-o. start)/h;r >=0&&(u=(o .end-p.get Time())/h) ,o.lines=u ,u>l&&(o.l ines=l),e. by_hour.pu sh(o)})},i .prototype ._hour_min =function( t){var e=t his.option s.time_sta rt.split(" :"),a=pars eInt(this. options.ti me_split), o=60/a;ret urn 0==t?o -parseInt( e[1])/a:o} ,i.prototy pe._hour=f unction(t, e){var a=t his.option s.time_sta rt.split(" :"),o=pars eInt(this. options.ti me_split), n=""+(pars eInt(a[0]) +t*Math.ma x(o/60,1)) ,i=""+(o*e +(0==t?par seInt(a[1] ):0));retu rn n.forma tNum(2)+": "+i.format Num(2)},i. prototype. _week=func tion(){thi s._loadTem plate("wee k-days");v ar e={},o= parseInt(t his.option s.position .start.get Time()),n= parseInt(t his.option s.position .end.getTi me()),i=[] ,s=this,r= a(this,"fi rst_day"); return t.e ach(this.g etEventsBe tween(o,n) ,function( t,e){e.sta rt_day=new Date(pars eInt(e.sta rt)).getDa y(),1==r&& (e.start_d ay=(e.star t_day+6)%7 ),e.days=e .end-e.sta rt<=864e5? 1:(e.end-e .start)/86 4e5,e.star t<o&&(e.da ys=e.days- (o-e.start )/864e5,e. start_day= 0),e.days= Math.ceil( e.days),e. start_day+ e.days>7&& (e.days=7- e.start_da y),i.push( e)}),e.eve nts=i,e.ca l=this,s.o ptions.tem plates["we ek-days"]( e)},i.prot otype._mon th=functio n(t){this. _loadTempl ate("year- month");va r e={cal:t his},a=t+1 ;e.data_da y=this.opt ions.posit ion.start. getFullYea r()+"-"+(1 0>a?"0"+a: a)+"-01",e .month_nam e=this.loc ale["m"+t] ;var o=new Date(this .options.p osition.st art.getFul lYear(),t, 1,0,0,0);r eturn e.st art=parseI nt(o.getTi me()),e.en d=parseInt (new Date( this.optio ns.positio n.start.ge tFullYear( ),t+1,1,0, 0,0).getTi me()),e.ev ents=this. getEventsB etween(e.s tart,e.end ),this.opt ions.templ ates["year -month"](e )},i.proto type._day= function(e ,o){this._ loadTempla te("month- day");var n={tooltip :"",cal:th is},i=this .options.c lasses.mon ths.outmon th,s=this. options.po sition.sta rt.getDay( );2==a(thi s,"first_d ay")?s++:s =0==s?7:s, o=o-s+1;va r r=new Da te(this.op tions.posi tion.start .getFullYe ar(),this. options.po sition.sta rt.getMont h(),o,0,0, 0);o>0&&(i =this.opti ons.classe s.months.i nmonth);va r l=new Da te(this.op tions.posi tion.end.g etTime()-1 ).getDate( );if(o+1>l &&(this.st op_cycling =!0),o>l&& (o-=l,i=th is.options .classes.m onths.outm onth),i=t. trim(i+" " +this._get DayClass(" months",r) ),0>=o){va r d=new Da te(this.op tions.posi tion.start .getFullYe ar(),this. options.po sition.sta rt.getMont h(),0).get Date();o=d -Math.abs( o),i+=" ca l-month-fi rst-row"}v ar h=this. _getHolida y(r);retur n h!==!1&& (n.tooltip =h),n.data _day=r.get FullYear() +"-"+r.get MonthForma tted()+"-" +(10>o?"0" +o:o),n.cl s=i,n.day= o,n.start= parseInt(r .getTime() ),n.end=pa rseInt(n.s tart+864e5 ),n.events =this.getE ventsBetwe en(n.start ,n.end),th is.options .templates ["month-da y"](n)},i. prototype. _getHolida y=function (e){var a= !1;return t.each(o(t his,e.getF ullYear()) ,function( ){var o=!1 ;return t. each(this. days,funct ion(){retu rn this.to DateString ()==e.toDa teString() ?(o=!0,!1) :void 0}), o?(a=this. name,!1):v oid 0}),a} ,i.prototy pe._getHol idayName=f unction(t) {var e=thi s._getHoli day(t);ret urn e===!1 ?"":e},i.p rototype._ getDayClas s=function (t,e){var a=this,o=f unction(e, o){var n;n =a.options .classes&& t in a.opt ions.class es&&e in a .options.c lasses[t]? a.options. classes[t] [e]:"","st ring"==typ eof n&&n.l ength&&o.p ush(n)},n= [];e.toDat eString()= =(new Date ).toDateSt ring()&&o( "today",n) ;var i=thi s._getHoli day(e);swi tch(i!==!1 &&o("holid ays",n),e. getDay()){ case 0:o(" sunday",n) ;break;cas e 6:o("sat urday",n)} return o(e .toDateStr ing(),n),n .join(" ") },i.protot ype.view=f unction(t) {if(t){if( !this.opti ons.views[ t].enable) return;thi s.options. view=t}thi s._init_po sition(),t his._loadE vents(),th is._render (),this.op tions.onAf terViewLoa d.call(thi s,this.opt ions.view) },i.protot ype.naviga te=functio n(e,a){var o=t.exten d({},this. options.po sition);if ("next"==e )switch(th is.options .view){cas e"year":o. start.setF ullYear(th is.options .position. start.getF ullYear()+ 1);break;c ase"month" :o.start.s etMonth(th is.options .position. start.getM onth()+1); break;case "week":o.s tart.setDa te(this.op tions.posi tion.start .getDate() +7);break; case"day": o.start.se tDate(this .options.p osition.st art.getDat e()+1)}els e if("prev "==e)switc h(this.opt ions.view) {case"year ":o.start. setFullYea r(this.opt ions.posit ion.start. getFullYea r()-1);bre ak;case"mo nth":o.sta rt.setMont h(this.opt ions.posit ion.start. getMonth() -1);break; case"week" :o.start.s etDate(thi s.options. position.s tart.getDa te()-7);br eak;case"d ay":o.star t.setDate( this.optio ns.positio n.start.ge tDate()-1) }else"toda y"==e?o.st art.setTim e((new Dat e).getTime ()):t.erro r(this.loc ale.error_ where.form at(e));thi s.options. day=o.star t.getFullY ear()+"-"+ o.start.ge tMonthForm atted()+"- "+o.start. getDateFor matted(),t his.view() ,_.isFunct ion(a)&&a( )},i.proto type._init _position= function() {var e,o,n ;if("now"= =this.opti ons.day){v ar i=new D ate;e=i.ge tFullYear( ),o=i.getM onth(),n=i .getDate() }else if(t his.option s.day.matc h(/^\d{4}- \d{2}-\d{2 }$/g)){var s=this.op tions.day. split("-") ;e=parseIn t(s[0],10) ,o=parseIn t(s[1],10) -1,n=parse Int(s[2],1 0)}else t. error(this .locale.er ror_datefo rmat.forma t(this.opt ions.day)) ;switch(th is.options .view){cas e"year":th is.options .position. start.setT ime(new Da te(e,0,1). getTime()) ,this.opti ons.positi on.end.set Time(new D ate(e+1,0, 1).getTime ());break; case"month ":this.opt ions.posit ion.start. setTime(ne w Date(e,o ,1).getTim e()),this. options.po sition.end .setTime(n ew Date(e, o+1,1).get Time());br eak;case"d ay":this.o ptions.pos ition.star t.setTime( new Date(e ,o,n).getT ime()),thi s.options. position.e nd.setTime (new Date( e,o,n+1).g etTime()); break;case "week":var r,l=new D ate(e,o,n) ;r=1==a(th is,"first_ day")?l.ge tDate()-(l .getDay()+ 6)%7:l.get Date()-l.g etDay(),th is.options .position. start.setT ime(new Da te(e,o,r). getTime()) ,this.opti ons.positi on.end.set Time(new D ate(e,o,r+ 7).getTime ());break; default:t. error(this .locale.er ror_noview .format(th is.options .view))}re turn this} ,i.prototy pe.getTitl e=function (){var t=t his.option s.position .start;swi tch(this.o ptions.vie w){case"ye ar":return this.loca le.title_y ear.format (t.getFull Year());ca se"month": return thi s.locale.t itle_month .format(th is.locale[ "m"+t.getM onth()],t. getFullYea r());case" week":retu rn this.lo cale.title _week.form at(t.getWe ek(),t.get FullYear() );case"day ":return t his.locale .title_day .format(th is.locale[ "d"+t.getD ay()],t.ge tDate(),th is.locale[ "m"+t.getM onth()],t. getFullYea r())}},i.p rototype.i sToday=fun ction(){va r t=(new D ate).getTi me();retur n t>this.o ptions.pos ition.star t&&t<this. options.po sition.end },i.protot ype.getSta rtDate=fun ction(){re turn this. options.po sition.sta rt},i.prot otype.getE ndDate=fun ction(){re turn this. options.po sition.end },i.protot ype._loadE vents=func tion(){var a=this,o= null;"even ts_source" in this.op tions&&""! ==this.opt ions.event s_source?o =this.opti ons.events _source:"e vents_url" in this.op tions&&(o= this.optio ns.events_ url,n("The events_ur l option i s DEPRECAT ED and it will be RE MOVED in n ear future . Please u se events_ source ins tead."));v ar i;switc h(t.type(o )){case"fu nction":i= function() {return o( a.options. position.s tart,a.opt ions.posit ion.end,p) };break;ca se"array": i=function (){return[ ].concat(o )};break;c ase"string ":o.length &&(i=funct ion(){var n=[],i={fr om:a.optio ns.positio n.start.ge tTime(),to :a.options .position. end.getTim e()};retur n p.length &&(i.brows er_timezon e=p),t.aja x({url:e(o ,i),dataTy pe:"json", type:"GET" ,async:!1} ).done(fun ction(e){e .success|| t.error(e. error),e.r esult&&(n= e.result)} ),n})}i||t .error(thi s.locale.e rror_loadu rl),this.o ptions.onB eforeEvent sLoad.call (this,func tion(){a.o ptions.eve nts=i(),a. options.ev ents.sort( function(t ,e){var a; return a=t .start-e.s tart,0==a& &(a=t.end- e.end),a}) ,a.options .onAfterEv entsLoad.c all(a,a.op tions.even ts)})},i.p rototype._ templatePa th=functio n(t){retur n"function "==typeof this.optio ns.tmpl_pa th?this.op tions.tmpl _path(t):t his.option s.tmpl_pat h+t+".html "},i.proto type._load Template=f unction(e) {if(!this. options.te mplates[e] ){var a=th is;t.ajax( {url:a._te mplatePath (e),dataTy pe:"html", type:"GET" ,async:!1, cache:this .options.t mpl_cache} ).done(fun ction(t){a .options.t emplates[e ]=_.templa te(t)})}}, i.prototyp e._update= function() {var e=thi s;t('*[dat a-toggle=" tooltip"]' ).tooltip( {container :"body"}), t("*[data- cal-date]" ).click(fu nction(){v ar a=t(thi s).data("c al-view"); e.options. day=t(this ).data("ca l-date"),e .view(a)}) ,t(".cal-c ell").dblc lick(funct ion(){var a=t("[data -cal-date] ",this).da ta("cal-vi ew");e.opt ions.day=t ("[data-ca l-date]",t his).data( "cal-date" ),e.view(a )}),this[" _update_"+ this.optio ns.view]() ,this._upd ate_modal( )},i.proto type._upda te_modal=f unction(){ var e=this ;if(t("a[d ata-event- id]",this. context).u nbind("cli ck"),e.opt ions.modal ){var a=t( e.options. modal);if( a.length){ var o=null ;"iframe"= =e.options .modal_typ e&&(o=t(do cument.cre ateElement ("iframe") ).attr({wi dth:"100%" ,framebord er:"0"})), t("a[data- event-id]" ,this.cont ext).on("c lick",func tion(n){n. preventDef ault(),n.s topPropaga tion();var i=t(this) .attr("hre f"),s=t(th is).data(" event-id") ,n=_.find( e.options. events,fun ction(t){r eturn t.id ==s});"ifr ame"==e.op tions.moda l_type&&(o .attr("src ",i),t(".m odal-body" ,a).html(o )),(!a.dat a("handled .bootstrap -calendar" )||a.data( "handled.b ootstrap-c alendar")& &a.data("h andled.eve nt-id")!=n .id)&&a.of f("show.bs .modal").o ff("shown. bs.modal") .off("hidd en.bs.moda l").on("sh ow.bs.moda l",functio n(){var o= t(this).fi nd(".modal -body");sw itch(e.opt ions.modal _type){cas e"iframe": var s=o.he ight()-par seInt(o.cs s("padding -top"),10) -parseInt( o.css("pad ding-botto m"),10);t( this).find ("iframe") .height(Ma th.max(s,5 0));break; case"ajax" :t.ajax({u rl:i,dataT ype:"html" ,async:!1, success:fu nction(t){ o.html(t)} });break;c ase"templa te":e._loa dTemplate( "modal"),o .html(e.op tions.temp lates.moda l({event:n ,calendar: e}))}_.isF unction(e. options.mo dal_title) &&a.find(" h3").html( e.options. modal_titl e(n))}).on ("shown.bs .modal",fu nction(){e .options.o nAfterModa lShown.cal l(e,e.opti ons.events )}).on("hi dden.bs.mo dal",funct ion(){e.op tions.onAf terModalHi dden.call( e,e.option s.events)} ).data("ha ndled.boot strap-cale ndar",!0). data("hand led.event- id",n.id), a.modal("s how")})}}} ,i.prototy pe._update _day=funct ion(){t("# cal-day-pa nel").heig ht(t("#cal -day-panel -hour").he ight())},i .prototype ._update_w eek=functi on(){},i.p rototype._ update_yea r=function (){this._u pdate_mont h_year()}, i.prototyp e._update_ month=func tion(){thi s._update_ month_year ();var e=t his,a=t(do cument.cre ateElement ("div")).a ttr("id"," cal-week-b ox"),o=thi s.options. position.s tart.getFu llYear()+" -"+this.op tions.posi tion.start .getMonthF ormatted() +"-";t(".c al-month-b ox .cal-ro w-fluid"). on("mousee nter",func tion(){var n=new Dat e(e.option s.position .start),i= t(".cal-ce ll1:first- child .cal -month-day ",this),s= i.hasClass ("cal-mont h-first-ro w")?1:t("[ data-cal-d ate]",i).t ext();n.se tDate(pars eInt(s)),s =10>s?"0"+ s:s,a.html (e.locale. week.forma t(n.getWee k())),a.at tr("data-c al-week",o +s).show() .appendTo( i)}).on("m ouseleave" ,function( ){a.hide() }),a.click (function( ){e.option s.day=t(th is).data(" cal-week") ,e.view("w eek")}),t( "a.event") .mouseente r(function (){t('a[da ta-event-i d="'+t(thi s).data("e vent-id")+ '"]').clos est(".cal- cell1").ad dClass("da y-highligh t dh-"+t(t his).data( "event-cla ss"))}),t( "a.event") .mouseleav e(function (){t("div. cal-cell1" ).removeCl ass("day-h ighlight d h-"+t(this ).data("ev ent-class" ))})},i.pr ototype._u pdate_mont h_year=fun ction(){if (this.opti ons.views[ this.optio ns.view].s lide_event s){var e=t his,a=t(do cument.cre ateElement ("div")).a ttr("id"," cal-day-ti ck").html( '<i class= "icon-chev ron-down g lyphicon g lyphicon-c hevron-dow n"></i>'); t(".cal-mo nth-day, . cal-year-b ox .span3" ).on("mous eenter",fu nction(){0 !=t(".even ts-list",t his).lengt h&&t(this) .children( "[data-cal -date]").t ext()!=e.a ctivecell& &a.show(). appendTo(t his)}).on( "mouseleav e",functio n(){a.hide ()}).on("c lick",func tion(n){0! =t(".event s-list",th is).length &&t(this). children(" [data-cal- date]").te xt()!=e.ac tivecell&& s(n,a,o,e) });var o=t (document. createElem ent("div") ).attr("id ","cal-sli de-box");o .hide().cl ick(functi on(t){t.st opPropagat ion()}),th is._loadTe mplate("ev ents-list" ),a.click( function(a ){s(a,t(th is),o,e)}) }},i.proto type.getEv entsBetwee n=function (e,a){var o=[];retur n t.each(t his.option s.events,f unction(){ if(null==t his.start) return!0;v ar t=this. end||this. start;pars eInt(this. start)<a&& parseInt(t )>=e&&o.pu sh(this)}) ,o},t.fn.c alendar=fu nction(t){ return new i(t,this) }}(jQuery) ; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.