home *** CD-ROM | disk | FTP | other *** search
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: PKZip Archive
(archive/zip ).
You can browse this item here: lightning.jar
Confidence Program Detection Match Type Support
100%
dexvert
PKZip Archive (archive/zip)
magic
Supported
66%
dexvert
JAR Archive (archive/jar)
ext
Supported
100%
file
Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Mar 13 2008 08:04:18, uncompressed size 27668, method=store
default
99%
file
Zip archive, with extra data prepended
default
98%
file
data
default
72%
TrID
Sweet Home 3D design (generic)
default (weak)
27%
TrID
ZIP compressed archive
default
100%
dexmagic
PrintFox/Pagefox WEAK
default
100%
siegfried
x-fmt/263 ZIP Format
default
100%
lsar
Zip
default
100%
gt2
ZIP Archiv gefunden (Auflistung ist deaktiviert)
default
100%
detectItEasy
Archive: Zip(1.0)[100.0%,22 files]
default
100%
binwalkID
Zip archive data, at least v1.0 to extract, compressed size: 27668, uncompressed size: 27668, name: content/lightning/agenda-listbox.js
default
100%
xdgMime
application/zip
default
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 50 4b 03 04 0a 00 00 00 | 00 00 89 40 6d 38 44 f7 |PK......|...@m8D.| |00000010| ff 72 14 6c 00 00 14 6c | 00 00 23 00 00 00 63 6f |.r.l...l|..#...co| |00000020| 6e 74 65 6e 74 2f 6c 69 | 67 68 74 6e 69 6e 67 2f |ntent/li|ghtning/| |00000030| 61 67 65 6e 64 61 2d 6c | 69 73 74 62 6f 78 2e 6a |agenda-l|istbox.j| |00000040| 73 2f 2a 20 2a 2a 2a 2a | 2a 20 42 45 47 49 4e 20 |s/* ****|* BEGIN | |00000050| 4c 49 43 45 4e 53 45 20 | 42 4c 4f 43 4b 20 2a 2a |LICENSE |BLOCK **| |00000060| 2a 2a 2a 0a 20 2a 20 56 | 65 72 73 69 6f 6e 3a 20 |***. * V|ersion: | |00000070| 4d 50 4c 20 31 2e 31 2f | 47 50 4c 20 32 2e 30 2f |MPL 1.1/|GPL 2.0/| |00000080| 4c 47 50 4c 20 32 2e 31 | 0a 20 2a 0a 20 2a 20 54 |LGPL 2.1|. *. * T| |00000090| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t| |000000a0| 68 69 73 20 66 69 6c 65 | 20 61 72 65 20 73 75 62 |his file| are sub| |000000b0| 6a 65 63 74 20 74 6f 20 | 74 68 65 20 4d 6f 7a 69 |ject to |the Mozi| |000000c0| 6c 6c 61 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |lla Publ|ic Licen| |000000d0| 73 65 20 56 65 72 73 69 | 6f 6e 0a 20 2a 20 31 2e |se Versi|on. * 1.| |000000e0| 31 20 28 74 68 65 20 22 | 4c 69 63 65 6e 73 65 22 |1 (the "|License"| |000000f0| 29 3b 20 79 6f 75 20 6d | 61 79 20 6e 6f 74 20 75 |); you m|ay not u| |00000100| 73 65 20 74 68 69 73 20 | 66 69 6c 65 20 65 78 63 |se this |file exc| |00000110| 65 70 74 20 69 6e 20 63 | 6f 6d 70 6c 69 61 6e 63 |ept in c|omplianc| |00000120| 65 20 77 69 74 68 0a 20 | 2a 20 74 68 65 20 4c 69 |e with. |* the Li| |00000130| 63 65 6e 73 65 2e 20 59 | 6f 75 20 6d 61 79 20 6f |cense. Y|ou may o| |00000140| 62 74 61 69 6e 20 61 20 | 63 6f 70 79 20 6f 66 20 |btain a |copy of | |00000150| 74 68 65 20 4c 69 63 65 | 6e 73 65 20 61 74 0a 20 |the Lice|nse at. | |00000160| 2a 20 68 74 74 70 3a 2f | 2f 77 77 77 2e 6d 6f 7a |* http:/|/www.moz| |00000170| 69 6c 6c 61 2e 6f 72 67 | 2f 4d 50 4c 2f 0a 20 2a |illa.org|/MPL/. *| |00000180| 0a 20 2a 20 53 6f 66 74 | 77 61 72 65 20 64 69 73 |. * Soft|ware dis| |00000190| 74 72 69 62 75 74 65 64 | 20 75 6e 64 65 72 20 74 |tributed| under t| |000001a0| 68 65 20 4c 69 63 65 6e | 73 65 20 69 73 20 64 69 |he Licen|se is di| |000001b0| 73 74 72 69 62 75 74 65 | 64 20 6f 6e 20 61 6e 20 |stribute|d on an | |000001c0| 22 41 53 20 49 53 22 20 | 62 61 73 69 73 2c 0a 20 |"AS IS" |basis,. | |000001d0| 2a 20 57 49 54 48 4f 55 | 54 20 57 41 52 52 41 4e |* WITHOU|T WARRAN| |000001e0| 54 59 20 4f 46 20 41 4e | 59 20 4b 49 4e 44 2c 20 |TY OF AN|Y KIND, | |000001f0| 65 69 74 68 65 72 20 65 | 78 70 72 65 73 73 20 6f |either e|xpress o| |00000200| 72 20 69 6d 70 6c 69 65 | 64 2e 20 53 65 65 20 74 |r implie|d. See t| |00000210| 68 65 20 4c 69 63 65 6e | 73 65 0a 20 2a 20 66 6f |he Licen|se. * fo| |00000220| 72 20 74 68 65 20 73 70 | 65 63 69 66 69 63 20 6c |r the sp|ecific l| |00000230| 61 6e 67 75 61 67 65 20 | 67 6f 76 65 72 6e 69 6e |anguage |governin| |00000240| 67 20 72 69 67 68 74 73 | 20 61 6e 64 20 6c 69 6d |g rights| and lim| |00000250| 69 74 61 74 69 6f 6e 73 | 20 75 6e 64 65 72 20 74 |itations| under t| |00000260| 68 65 0a 20 2a 20 4c 69 | 63 65 6e 73 65 2e 0a 20 |he. * Li|cense.. | |00000270| 2a 0a 20 20 20 20 2d 20 | 54 68 65 20 4f 72 69 67 |*. - |The Orig| |00000280| 69 6e 61 6c 20 43 6f 64 | 65 20 69 73 20 53 75 6e |inal Cod|e is Sun| |00000290| 20 4d 69 63 72 6f 73 79 | 73 74 65 6d 73 20 63 6f | Microsy|stems co| |000002a0| 64 65 2e 0a 20 2a 0a 20 | 2a 20 54 68 65 20 49 6e |de.. *. |* The In| |000002b0| 69 74 69 61 6c 20 44 65 | 76 65 6c 6f 70 65 72 20 |itial De|veloper | |000002c0| 6f 66 20 74 68 65 20 4f | 72 69 67 69 6e 61 6c 20 |of the O|riginal | |000002d0| 43 6f 64 65 20 69 73 0a | 20 2a 20 53 75 6e 20 4d |Code is.| * Sun M| |000002e0| 69 63 72 6f 73 79 73 74 | 65 6d 73 2e 0a 20 2a 20 |icrosyst|ems.. * | |000002f0| 50 6f 72 74 69 6f 6e 73 | 20 63 72 65 61 74 65 64 |Portions| created| |00000300| 20 62 79 20 74 68 65 20 | 49 6e 69 74 69 61 6c 20 | by the |Initial | |00000310| 44 65 76 65 6c 6f 70 65 | 72 20 61 72 65 20 43 6f |Develope|r are Co| |00000320| 70 79 72 69 67 68 74 20 | 28 43 29 20 32 30 30 37 |pyright |(C) 2007| |00000330| 0a 20 2a 20 74 68 65 20 | 49 6e 69 74 69 61 6c 20 |. * the |Initial | |00000340| 44 65 76 65 6c 6f 70 65 | 72 2e 20 41 6c 6c 20 52 |Develope|r. All R| |00000350| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 2e 0a |ights Re|served..| |00000360| 20 2a 0a 20 2a 20 43 6f | 6e 74 72 69 62 75 74 6f | *. * Co|ntributo| |00000370| 72 28 73 29 3a 0a 20 2a | 20 20 20 42 65 72 65 6e |r(s):. *| Beren| |00000380| 64 20 43 6f 72 6e 65 6c | 69 75 73 20 3c 62 65 72 |d Cornel|ius <ber| |00000390| 65 6e 64 2e 63 6f 72 6e | 65 6c 69 75 73 40 73 75 |end.corn|elius@su| |000003a0| 6e 2e 63 6f 6d 3e 0a 20 | 2a 0a 20 2a 20 41 6c 74 |n.com>. |*. * Alt| |000003b0| 65 72 6e 61 74 69 76 65 | 6c 79 2c 20 74 68 65 20 |ernative|ly, the | |000003c0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 69 73 |contents| of this| |000003d0| 20 66 69 6c 65 20 6d 61 | 79 20 62 65 20 75 73 65 | file ma|y be use| |000003e0| 64 20 75 6e 64 65 72 20 | 74 68 65 20 74 65 72 6d |d under |the term| |000003f0| 73 20 6f 66 0a 20 2a 20 | 65 69 74 68 65 72 20 74 |s of. * |either t| |00000400| 68 65 20 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he GNU G|eneral P| |00000410| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 56 65 |ublic Li|cense Ve| |00000420| 72 73 69 6f 6e 20 32 20 | 6f 72 20 6c 61 74 65 72 |rsion 2 |or later| |00000430| 20 28 74 68 65 20 22 47 | 50 4c 22 29 2c 20 6f 72 | (the "G|PL"), or| |00000440| 0a 20 2a 20 74 68 65 20 | 47 4e 55 20 4c 65 73 73 |. * the |GNU Less| |00000450| 65 72 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |er Gener|al Publi| |00000460| 63 20 4c 69 63 65 6e 73 | 65 20 56 65 72 73 69 6f |c Licens|e Versio| |00000470| 6e 20 32 2e 31 20 6f 72 | 20 6c 61 74 65 72 20 28 |n 2.1 or| later (| |00000480| 74 68 65 20 22 4c 47 50 | 4c 22 29 2c 0a 20 2a 20 |the "LGP|L"),. * | |00000490| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th| |000004a0| 65 20 70 72 6f 76 69 73 | 69 6f 6e 73 20 6f 66 20 |e provis|ions of | |000004b0| 74 68 65 20 47 50 4c 20 | 6f 72 20 74 68 65 20 4c |the GPL |or the L| |000004c0| 47 50 4c 20 61 72 65 20 | 61 70 70 6c 69 63 61 62 |GPL are |applicab| |000004d0| 6c 65 20 69 6e 73 74 65 | 61 64 0a 20 2a 20 6f 66 |le inste|ad. * of| |000004e0| 20 74 68 6f 73 65 20 61 | 62 6f 76 65 2e 20 49 66 | those a|bove. If| |000004f0| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 20 61 6c 6c | you wis|h to all| |00000500| 6f 77 20 75 73 65 20 6f | 66 20 79 6f 75 72 20 76 |ow use o|f your v| |00000510| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 66 |ersion o|f this f| |00000520| 69 6c 65 20 6f 6e 6c 79 | 0a 20 2a 20 75 6e 64 65 |ile only|. * unde| |00000530| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 65 |r the te|rms of e| |00000540| 69 74 68 65 72 20 74 68 | 65 20 47 50 4c 20 6f 72 |ither th|e GPL or| |00000550| 20 74 68 65 20 4c 47 50 | 4c 2c 20 61 6e 64 20 6e | the LGP|L, and n| |00000560| 6f 74 20 74 6f 20 61 6c | 6c 6f 77 20 6f 74 68 65 |ot to al|low othe| |00000570| 72 73 20 74 6f 0a 20 2a | 20 75 73 65 20 79 6f 75 |rs to. *| use you| |00000580| 72 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 69 |r versio|n of thi| |00000590| 73 20 66 69 6c 65 20 75 | 6e 64 65 72 20 74 68 65 |s file u|nder the| |000005a0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 4d 50 | terms o|f the MP| |000005b0| 4c 2c 20 69 6e 64 69 63 | 61 74 65 20 79 6f 75 72 |L, indic|ate your| |000005c0| 0a 20 2a 20 64 65 63 69 | 73 69 6f 6e 20 62 79 20 |. * deci|sion by | |000005d0| 64 65 6c 65 74 69 6e 67 | 20 74 68 65 20 70 72 6f |deleting| the pro| |000005e0| 76 69 73 69 6f 6e 73 20 | 61 62 6f 76 65 20 61 6e |visions |above an| |000005f0| 64 20 72 65 70 6c 61 63 | 65 20 74 68 65 6d 20 77 |d replac|e them w| |00000600| 69 74 68 20 74 68 65 20 | 6e 6f 74 69 63 65 0a 20 |ith the |notice. | |00000610| 2a 20 61 6e 64 20 6f 74 | 68 65 72 20 70 72 6f 76 |* and ot|her prov| |00000620| 69 73 69 6f 6e 73 20 72 | 65 71 75 69 72 65 64 20 |isions r|equired | |00000630| 62 79 20 74 68 65 20 47 | 50 4c 20 6f 72 20 74 68 |by the G|PL or th| |00000640| 65 20 4c 47 50 4c 2e 20 | 49 66 20 79 6f 75 20 64 |e LGPL. |If you d| |00000650| 6f 20 6e 6f 74 20 64 65 | 6c 65 74 65 0a 20 2a 20 |o not de|lete. * | |00000660| 74 68 65 20 70 72 6f 76 | 69 73 69 6f 6e 73 20 61 |the prov|isions a| |00000670| 62 6f 76 65 2c 20 61 20 | 72 65 63 69 70 69 65 6e |bove, a |recipien| |00000680| 74 20 6d 61 79 20 75 73 | 65 20 79 6f 75 72 20 76 |t may us|e your v| |00000690| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 66 |ersion o|f this f| |000006a0| 69 6c 65 20 75 6e 64 65 | 72 0a 20 2a 20 74 68 65 |ile unde|r. * the| |000006b0| 20 74 65 72 6d 73 20 6f | 66 20 61 6e 79 20 6f 6e | terms o|f any on| |000006c0| 65 20 6f 66 20 74 68 65 | 20 4d 50 4c 2c 20 74 68 |e of the| MPL, th| |000006d0| 65 20 47 50 4c 20 6f 72 | 20 74 68 65 20 4c 47 50 |e GPL or| the LGP| |000006e0| 4c 2e 0a 20 2a 0a 20 2a | 20 2a 2a 2a 2a 2a 20 45 |L.. *. *| ***** E| |000006f0| 4e 44 20 4c 49 43 45 4e | 53 45 20 42 4c 4f 43 4b |ND LICEN|SE BLOCK| |00000700| 20 2a 2a 2a 2a 2a 20 2a | 2f 0a 0a 66 75 6e 63 74 | ***** *|/..funct| |00000710| 69 6f 6e 20 53 79 6e 74 | 68 65 74 69 63 28 61 4f |ion Synt|hetic(aO| |00000720| 70 65 6e 2c 20 61 44 75 | 72 61 74 69 6f 6e 29 20 |pen, aDu|ration) | |00000730| 7b 0a 20 20 20 20 74 68 | 69 73 2e 6f 70 65 6e 20 |{. th|is.open | |00000740| 3d 20 61 4f 70 65 6e 3b | 0a 20 20 20 20 74 68 69 |= aOpen;|. thi| |00000750| 73 2e 64 75 72 61 74 69 | 6f 6e 20 3d 20 61 44 75 |s.durati|on = aDu| |00000760| 72 61 74 69 6f 6e 3b 0a | 7d 0a 0a 76 61 72 20 61 |ration;.|}..var a| |00000770| 67 65 6e 64 61 4c 69 73 | 74 62 6f 78 20 3d 20 7b |gendaLis|tbox = {| |00000780| 0a 20 20 20 20 61 67 65 | 6e 64 61 4c 69 73 74 62 |. age|ndaListb| |00000790| 6f 78 43 6f 6e 74 72 6f | 6c 3a 20 6e 75 6c 6c 2c |oxContro|l: null,| |000007a0| 0a 20 20 20 20 70 65 6e | 64 69 6e 67 52 65 66 72 |. pen|dingRefr| |000007b0| 65 73 68 3a 20 6e 75 6c | 6c 2c 0a 20 20 20 20 65 |esh: nul|l,. e| |000007c0| 76 65 6e 74 6c 69 73 74 | 49 74 65 6d 3a 20 6e 75 |ventlist|Item: nu| |000007d0| 6c 6c 2c 0a 20 20 20 20 | 6e 65 77 61 6c 6c 64 61 |ll,. |newallda| |000007e0| 79 65 76 65 6e 74 6c 69 | 73 74 49 74 65 6d 3a 20 |yeventli|stItem: | |000007f0| 6e 75 6c 6c 2c 0a 20 20 | 20 20 6b 44 65 66 61 75 |null,. | kDefau| |00000800| 6c 74 54 69 6d 65 7a 6f | 6e 65 3a 20 6e 75 6c 6c |ltTimezo|ne: null| |00000810| 2c 0a 20 20 20 20 73 68 | 6f 77 73 54 6f 64 61 79 |,. sh|owsToday| |00000820| 3a 20 66 61 6c 73 65 0a | 7d 3b 0a 0a 61 67 65 6e |: false.|};..agen| |00000830| 64 61 4c 69 73 74 62 6f | 78 2e 69 6e 69 74 20 3d |daListbo|x.init =| |00000840| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 69 74 41 67 |.functio|n initAg| |00000850| 65 6e 64 61 4c 69 73 74 | 62 6f 78 28 29 20 7b 0a |endaList|box() {.| |00000860| 20 20 20 20 74 68 69 73 | 2e 61 67 65 6e 64 61 4c | this|.agendaL| |00000870| 69 73 74 62 6f 78 43 6f | 6e 74 72 6f 6c 20 3d 20 |istboxCo|ntrol = | |00000880| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |00000890| 65 6e 74 42 79 49 64 28 | 22 61 67 65 6e 64 61 2d |entById(|"agenda-| |000008a0| 6c 69 73 74 62 6f 78 22 | 29 3b 0a 20 20 20 20 74 |listbox"|);. t| |000008b0| 68 69 73 2e 61 67 65 6e | 64 61 4c 69 73 74 62 6f |his.agen|daListbo| |000008c0| 78 43 6f 6e 74 72 6f 6c | 2e 72 65 6d 6f 76 65 41 |xControl|.removeA| |000008d0| 74 74 72 69 62 75 74 65 | 28 22 73 75 70 70 72 65 |ttribute|("suppre| |000008e0| 73 73 6f 6e 73 65 6c 65 | 63 74 22 29 3b 0a 20 20 |ssonsele|ct");. | |000008f0| 20 20 74 68 69 73 2e 6e | 65 77 61 6c 6c 64 61 79 | this.n|ewallday| |00000900| 65 76 65 6e 74 6c 69 73 | 74 49 74 65 6d 20 3d 20 |eventlis|tItem = | |00000910| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |00000920| 65 6e 74 42 79 49 64 28 | 22 72 69 63 68 6c 69 73 |entById(|"richlis| |00000930| 74 69 74 65 6d 2d 63 6f | 6e 74 61 69 6e 65 72 22 |titem-co|ntainer"| |00000940| 29 2e 66 69 72 73 74 43 | 68 69 6c 64 3b 0a 20 20 |).firstC|hild;. | |00000950| 20 20 74 68 69 73 2e 65 | 76 65 6e 74 6c 69 73 74 | this.e|ventlist| |00000960| 49 74 65 6d 20 3d 20 74 | 68 69 73 2e 6e 65 77 61 |Item = t|his.newa| |00000970| 6c 6c 64 61 79 65 76 65 | 6e 74 6c 69 73 74 49 74 |lldayeve|ntlistIt| |00000980| 65 6d 2e 6e 65 78 74 53 | 69 62 6c 69 6e 67 3b 0a |em.nextS|ibling;.| |00000990| 20 20 20 20 76 61 72 20 | 73 68 6f 77 54 6f 64 61 | var |showToda| |000009a0| 79 48 65 61 64 65 72 20 | 3d 20 28 64 6f 63 75 6d |yHeader |= (docum| |000009b0| 65 6e 74 2e 67 65 74 45 | 6c 65 6d 65 6e 74 42 79 |ent.getE|lementBy| |000009c0| 49 64 28 22 74 6f 64 61 | 79 2d 68 65 61 64 65 72 |Id("toda|y-header| |000009d0| 2d 68 69 64 64 65 6e 22 | 29 2e 67 65 74 41 74 74 |-hidden"|).getAtt| |000009e0| 72 69 62 75 74 65 28 22 | 63 68 65 63 6b 65 64 22 |ribute("|checked"| |000009f0| 29 20 3d 3d 20 22 74 72 | 75 65 22 29 3b 0a 20 20 |) == "tr|ue");. | |00000a00| 20 20 76 61 72 20 73 68 | 6f 77 54 6f 6d 6f 72 72 | var sh|owTomorr| |00000a10| 6f 77 48 65 61 64 65 72 | 20 3d 20 28 64 6f 63 75 |owHeader| = (docu| |00000a20| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |00000a30| 79 49 64 28 22 74 6f 6d | 6f 72 72 6f 77 2d 68 65 |yId("tom|orrow-he| |00000a40| 61 64 65 72 2d 68 69 64 | 64 65 6e 22 29 2e 67 65 |ader-hid|den").ge| |00000a50| 74 41 74 74 72 69 62 75 | 74 65 28 22 63 68 65 63 |tAttribu|te("chec| |00000a60| 6b 65 64 22 29 20 3d 3d | 20 22 74 72 75 65 22 29 |ked") ==| "true")| |00000a70| 3b 0a 20 20 20 20 76 61 | 72 20 73 68 6f 77 53 6f |;. va|r showSo| |00000a80| 6f 6e 48 65 61 64 65 72 | 20 3d 20 28 64 6f 63 75 |onHeader| = (docu| |00000a90| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |00000aa0| 79 49 64 28 22 6e 65 78 | 74 77 65 65 6b 2d 68 65 |yId("nex|tweek-he| |00000ab0| 61 64 65 72 2d 68 69 64 | 64 65 6e 22 29 2e 67 65 |ader-hid|den").ge| |00000ac0| 74 41 74 74 72 69 62 75 | 74 65 28 22 63 68 65 63 |tAttribu|te("chec| |00000ad0| 6b 65 64 22 29 20 3d 3d | 20 22 74 72 75 65 22 29 |ked") ==| "true")| |00000ae0| 3b 0a 20 20 20 20 74 68 | 69 73 2e 74 6f 64 61 79 |;. th|is.today| |00000af0| 20 3d 20 6e 65 77 20 53 | 79 6e 74 68 65 74 69 63 | = new S|ynthetic| |00000b00| 28 73 68 6f 77 54 6f 64 | 61 79 48 65 61 64 65 72 |(showTod|ayHeader| |00000b10| 2c 20 31 29 3b 0a 20 20 | 20 20 74 68 69 73 2e 61 |, 1);. | this.a| |00000b20| 64 64 50 65 72 69 6f 64 | 4c 69 73 74 49 74 65 6d |ddPeriod|ListItem| |00000b30| 28 74 68 69 73 2e 74 6f | 64 61 79 2c 20 22 74 6f |(this.to|day, "to| |00000b40| 64 61 79 2d 68 65 61 64 | 65 72 22 29 3b 0a 20 20 |day-head|er");. | |00000b50| 20 20 74 68 69 73 2e 74 | 6f 6d 6f 72 72 6f 77 20 | this.t|omorrow | |00000b60| 3d 20 6e 65 77 20 53 79 | 6e 74 68 65 74 69 63 28 |= new Sy|nthetic(| |00000b70| 73 68 6f 77 54 6f 6d 6f | 72 72 6f 77 48 65 61 64 |showTomo|rrowHead| |00000b80| 65 72 2c 20 31 29 3b 0a | 20 20 20 20 74 68 69 73 |er, 1);.| this| |00000b90| 2e 73 6f 6f 6e 20 3d 20 | 6e 65 77 20 53 79 6e 74 |.soon = |new Synt| |00000ba0| 68 65 74 69 63 28 73 68 | 6f 77 53 6f 6f 6e 48 65 |hetic(sh|owSoonHe| |00000bb0| 61 64 65 72 2c 20 35 29 | 3b 0a 20 20 20 20 74 68 |ader, 5)|;. th| |00000bc0| 69 73 2e 70 65 72 69 6f | 64 73 20 3d 20 5b 74 68 |is.perio|ds = [th| |00000bd0| 69 73 2e 74 6f 64 61 79 | 2c 20 74 68 69 73 2e 74 |is.today|, this.t| |00000be0| 6f 6d 6f 72 72 6f 77 2c | 20 74 68 69 73 2e 73 6f |omorrow,| this.so| |00000bf0| 6f 6e 5d 3b 0a 7d 3b 0a | 0a 61 67 65 6e 64 61 4c |on];.};.|.agendaL| |00000c00| 69 73 74 62 6f 78 2e 61 | 64 64 50 65 72 69 6f 64 |istbox.a|ddPeriod| |00000c10| 4c 69 73 74 49 74 65 6d | 20 3d 0a 66 75 6e 63 74 |ListItem| =.funct| |00000c20| 69 6f 6e 20 61 64 64 50 | 65 72 69 6f 64 4c 69 73 |ion addP|eriodLis| |00000c30| 74 49 74 65 6d 28 61 50 | 65 72 69 6f 64 2c 20 61 |tItem(aP|eriod, a| |00000c40| 49 74 65 6d 49 64 29 20 | 7b 0a 20 20 20 20 61 50 |ItemId) |{. aP| |00000c50| 65 72 69 6f 64 2e 6c 69 | 73 74 49 74 65 6d 20 3d |eriod.li|stItem =| |00000c60| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00000c70| 6d 65 6e 74 42 79 49 64 | 28 61 49 74 65 6d 49 64 |mentById|(aItemId| |00000c80| 20 2b 20 22 2d 68 69 64 | 64 65 6e 22 29 2e 63 6c | + "-hid|den").cl| |00000c90| 6f 6e 65 4e 6f 64 65 28 | 74 72 75 65 29 3b 0a 20 |oneNode(|true);. | |00000ca0| 20 20 20 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 | agend|aListbox| |00000cb0| 2e 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 43 6f |.agendaL|istboxCo| |00000cc0| 6e 74 72 6f 6c 2e 61 70 | 70 65 6e 64 43 68 69 6c |ntrol.ap|pendChil| |00000cd0| 64 28 61 50 65 72 69 6f | 64 2e 6c 69 73 74 49 74 |d(aPerio|d.listIt| |00000ce0| 65 6d 29 3b 0a 20 20 20 | 20 61 50 65 72 69 6f 64 |em);. | aPeriod| |00000cf0| 2e 6c 69 73 74 49 74 65 | 6d 2e 69 64 20 3d 20 61 |.listIte|m.id = a| |00000d00| 49 74 65 6d 49 64 3b 0a | 20 20 20 20 61 50 65 72 |ItemId;.| aPer| |00000d10| 69 6f 64 2e 6c 69 73 74 | 49 74 65 6d 2e 67 65 74 |iod.list|Item.get| |00000d20| 43 68 65 63 6b 62 6f 78 | 28 29 2e 73 65 74 43 68 |Checkbox|().setCh| |00000d30| 65 63 6b 65 64 28 61 50 | 65 72 69 6f 64 2e 6f 70 |ecked(aP|eriod.op| |00000d40| 65 6e 29 3b 0a 20 20 20 | 20 61 50 65 72 69 6f 64 |en);. | aPeriod| |00000d50| 2e 6c 69 73 74 49 74 65 | 6d 2e 67 65 74 43 68 65 |.listIte|m.getChe| |00000d60| 63 6b 62 6f 78 28 29 2e | 61 64 64 45 76 65 6e 74 |ckbox().|addEvent| |00000d70| 4c 69 73 74 65 6e 65 72 | 28 22 43 68 65 63 6b 62 |Listener|("Checkb| |00000d80| 6f 78 53 74 61 74 65 43 | 68 61 6e 67 65 22 2c 20 |oxStateC|hange", | |00000d90| 74 68 69 73 2e 6f 6e 43 | 68 65 63 6b 62 6f 78 43 |this.onC|heckboxC| |00000da0| 68 61 6e 67 65 2c 20 74 | 72 75 65 29 3b 0a 7d 0a |hange, t|rue);.}.| |00000db0| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 72 |.agendaL|istbox.r| |00000dc0| 65 6d 6f 76 65 50 65 72 | 69 6f 64 4c 69 73 74 49 |emovePer|iodListI| |00000dd0| 74 65 6d 20 3d 0a 66 75 | 6e 63 74 69 6f 6e 20 72 |tem =.fu|nction r| |00000de0| 65 6d 6f 76 65 50 65 72 | 69 6f 64 4c 69 73 74 49 |emovePer|iodListI| |00000df0| 74 65 6d 28 61 50 65 72 | 69 6f 64 29 20 7b 0a 20 |tem(aPer|iod) {. | |00000e00| 20 20 20 69 66 20 28 61 | 50 65 72 69 6f 64 2e 6c | if (a|Period.l| |00000e10| 69 73 74 49 74 65 6d 29 | 20 7b 0a 20 20 20 20 20 |istItem)| {. | |00000e20| 20 20 20 74 68 69 73 2e | 61 67 65 6e 64 61 4c 69 | this.|agendaLi| |00000e30| 73 74 62 6f 78 43 6f 6e | 74 72 6f 6c 2e 72 65 6d |stboxCon|trol.rem| |00000e40| 6f 76 65 43 68 69 6c 64 | 28 61 50 65 72 69 6f 64 |oveChild|(aPeriod| |00000e50| 2e 6c 69 73 74 49 74 65 | 6d 29 3b 0a 20 20 20 20 |.listIte|m);. | |00000e60| 20 20 20 20 61 50 65 72 | 69 6f 64 2e 6c 69 73 74 | aPer|iod.list| |00000e70| 49 74 65 6d 20 3d 20 6e | 75 6c 6c 3b 0a 20 20 20 |Item = n|ull;. | |00000e80| 20 7d 0a 7d 0a 0a 61 67 | 65 6e 64 61 4c 69 73 74 | }.}..ag|endaList| |00000e90| 62 6f 78 2e 6f 6e 43 68 | 65 63 6b 62 6f 78 43 68 |box.onCh|eckboxCh| |00000ea0| 61 6e 67 65 20 3d 0a 66 | 75 6e 63 74 69 6f 6e 20 |ange =.f|unction | |00000eb0| 6f 6e 43 68 65 63 6b 62 | 6f 78 43 68 61 6e 67 65 |onCheckb|oxChange| |00000ec0| 28 65 76 65 6e 74 29 20 | 7b 0a 20 20 20 20 76 61 |(event) |{. va| |00000ed0| 72 20 70 65 72 69 6f 64 | 43 68 65 63 6b 62 6f 78 |r period|Checkbox| |00000ee0| 20 3d 20 65 76 65 6e 74 | 2e 74 61 72 67 65 74 3b | = event|.target;| |00000ef0| 0a 20 20 20 20 76 61 72 | 20 6c 6f 70 65 6e 20 3d |. var| lopen =| |00000f00| 20 28 70 65 72 69 6f 64 | 43 68 65 63 6b 62 6f 78 | (period|Checkbox| |00000f10| 2e 67 65 74 41 74 74 72 | 69 62 75 74 65 28 22 63 |.getAttr|ibute("c| |00000f20| 68 65 63 6b 65 64 22 29 | 20 3d 3d 20 22 74 72 75 |hecked")| == "tru| |00000f30| 65 22 29 3b 0a 20 20 20 | 20 76 61 72 20 6c 69 73 |e");. | var lis| |00000f40| 74 49 74 65 6d 20 3d 20 | 67 65 74 50 61 72 65 6e |tItem = |getParen| |00000f50| 74 4e 6f 64 65 28 70 65 | 72 69 6f 64 43 68 65 63 |tNode(pe|riodChec| |00000f60| 6b 62 6f 78 2c 20 22 61 | 67 65 6e 64 61 2d 63 68 |kbox, "a|genda-ch| |00000f70| 65 63 6b 62 6f 78 2d 72 | 69 63 68 6c 69 73 74 2d |eckbox-r|ichlist-| |00000f80| 69 74 65 6d 22 29 3b 0a | 20 20 20 20 76 61 72 20 |item");.| var | |00000f90| 70 65 72 69 6f 64 20 3d | 20 6c 69 73 74 49 74 65 |period =| listIte| |00000fa0| 6d 2e 67 65 74 49 74 65 | 6d 28 29 3b 0a 20 20 20 |m.getIte|m();. | |00000fb0| 20 70 65 72 69 6f 64 2e | 6f 70 65 6e 3d 20 6c 6f | period.|open= lo| |00000fc0| 70 65 6e 3b 0a 20 20 20 | 20 64 6f 63 75 6d 65 6e |pen;. | documen| |00000fd0| 74 2e 67 65 74 45 6c 65 | 6d 65 6e 74 42 79 49 64 |t.getEle|mentById| |00000fe0| 28 6c 69 73 74 49 74 65 | 6d 2e 69 64 20 2b 20 22 |(listIte|m.id + "| |00000ff0| 2d 68 69 64 64 65 6e 22 | 29 2e 73 65 74 41 74 74 |-hidden"|).setAtt| |00001000| 72 69 62 75 74 65 28 22 | 63 68 65 63 6b 65 64 22 |ribute("|checked"| |00001010| 2c 20 6c 6f 70 65 6e 29 | 3b 0a 20 20 20 20 69 66 |, lopen)|;. if| |00001020| 20 28 6c 6f 70 65 6e 29 | 20 7b 0a 20 20 20 20 20 | (lopen)| {. | |00001030| 20 20 20 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 | agend|aListbox| |00001040| 2e 72 65 66 72 65 73 68 | 43 61 6c 65 6e 64 61 72 |.refresh|Calendar| |00001050| 51 75 65 72 79 28 70 65 | 72 69 6f 64 2e 73 74 61 |Query(pe|riod.sta| |00001060| 72 74 2c 20 70 65 72 69 | 6f 64 2e 65 6e 64 29 3b |rt, peri|od.end);| |00001070| 0a 20 20 20 20 7d 20 65 | 6c 73 65 20 7b 0a 20 20 |. } e|lse {. | |00001080| 20 20 20 20 20 20 6c 69 | 73 74 49 74 65 6d 20 3d | li|stItem =| |00001090| 20 6c 69 73 74 49 74 65 | 6d 2e 6e 65 78 74 53 69 | listIte|m.nextSi| |000010a0| 62 6c 69 6e 67 3b 0a 20 | 20 20 20 20 20 20 20 64 |bling;. | d| |000010b0| 6f 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |o {. | | |000010c0| 76 61 72 20 6c 65 61 76 | 65 6c 6f 6f 70 20 3d 20 |var leav|eloop = | |000010d0| 28 6c 69 73 74 49 74 65 | 6d 20 3d 3d 20 6e 75 6c |(listIte|m == nul| |000010e0| 6c 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |l);. | | |000010f0| 69 66 20 28 21 6c 65 61 | 76 65 6c 6f 6f 70 29 20 |if (!lea|veloop) | |00001100| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | | |00001110| 20 20 76 61 72 20 6e 65 | 78 74 49 74 65 6d 53 69 | var ne|xtItemSi| |00001120| 62 6c 69 6e 67 20 3d 20 | 6c 69 73 74 49 74 65 6d |bling = |listItem| |00001130| 2e 6e 65 78 74 53 69 62 | 6c 69 6e 67 3b 0a 20 20 |.nextSib|ling;. | |00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 65 | | le| |00001150| 61 76 65 6c 6f 6f 70 20 | 3d 20 28 21 61 67 65 6e |aveloop |= (!agen| |00001160| 64 61 4c 69 73 74 62 6f | 78 2e 69 73 45 76 65 6e |daListbo|x.isEven| |00001170| 74 4c 69 73 74 49 74 65 | 6d 28 6c 69 73 74 49 74 |tListIte|m(listIt| |00001180| 65 6d 29 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |em));. | | |00001190| 20 20 20 20 20 20 69 66 | 20 28 21 6c 65 61 76 65 | if| (!leave| |000011a0| 6c 6f 6f 70 29 20 7b 0a | 20 20 20 20 20 20 20 20 |loop) {.| | |000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 67 65 6e | | agen| |000011c0| 64 61 4c 69 73 74 62 6f | 78 2e 61 67 65 6e 64 61 |daListbo|x.agenda| |000011d0| 4c 69 73 74 62 6f 78 43 | 6f 6e 74 72 6f 6c 2e 72 |ListboxC|ontrol.r| |000011e0| 65 6d 6f 76 65 43 68 69 | 6c 64 28 6c 69 73 74 49 |emoveChi|ld(listI| |000011f0| 74 65 6d 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |tem);. | | |00001200| 20 20 20 20 20 20 20 20 | 20 20 6c 69 73 74 49 74 | | listIt| |00001210| 65 6d 20 3d 20 6e 65 78 | 74 49 74 65 6d 53 69 62 |em = nex|tItemSib| |00001220| 6c 69 6e 67 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ling;. | | |00001230| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| | |00001240| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 7d 20 | }. | } | |00001250| 77 68 69 6c 65 20 28 21 | 6c 65 61 76 65 6c 6f 6f |while (!|leaveloo| |00001260| 70 29 3b 0a 20 20 20 20 | 7d 0a 7d 3b 0a 0a 61 67 |p);. |}.};..ag| |00001270| 65 6e 64 61 4c 69 73 74 | 62 6f 78 2e 6f 6e 53 65 |endaList|box.onSe| |00001280| 6c 65 63 74 20 3d 0a 66 | 75 6e 63 74 69 6f 6e 20 |lect =.f|unction | |00001290| 6f 6e 53 65 6c 65 63 74 | 28 29 20 7b 0a 20 20 20 |onSelect|() {. | |000012a0| 20 76 61 72 20 6c 69 73 | 74 62 6f 78 20 3d 20 64 | var lis|tbox = d| |000012b0| 6f 63 75 6d 65 6e 74 2e | 67 65 74 45 6c 65 6d 65 |ocument.|getEleme| |000012c0| 6e 74 42 79 49 64 28 22 | 61 67 65 6e 64 61 2d 6c |ntById("|agenda-l| |000012d0| 69 73 74 62 6f 78 22 29 | 3b 0a 20 20 20 20 6c 69 |istbox")|;. li| |000012e0| 73 74 62 6f 78 2e 66 6f | 63 75 73 28 29 3b 0a 20 |stbox.fo|cus();. | |000012f0| 20 20 20 6c 69 73 74 62 | 6f 78 2e 72 65 6d 6f 76 | listb|ox.remov| |00001300| 65 41 74 74 72 69 62 75 | 74 65 28 22 64 69 73 61 |eAttribu|te("disa| |00001310| 62 6c 65 64 22 29 3b 0a | 20 20 20 20 76 61 72 20 |bled");.| var | |00001320| 69 74 65 6d 20 20 3d 20 | 6c 69 73 74 62 6f 78 2e |item = |listbox.| |00001330| 73 65 6c 65 63 74 65 64 | 49 74 65 6d 3b 0a 20 20 |selected|Item;. | |00001340| 20 20 69 66 20 28 69 74 | 65 6d 29 20 7b 0a 20 20 | if (it|em) {. | |00001350| 20 20 20 20 20 20 69 74 | 65 6d 2e 73 65 6c 65 63 | it|em.selec| |00001360| 74 65 64 20 3d 20 74 72 | 75 65 3b 0a 20 20 20 20 |ted = tr|ue;. | |00001370| 20 20 20 20 69 74 65 6d | 2e 72 65 6d 6f 76 65 41 | item|.removeA| |00001380| 74 74 72 69 62 75 74 65 | 28 22 64 69 73 61 62 6c |ttribute|("disabl| |00001390| 65 64 22 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |ed");. | }. | |000013a0| 64 6f 63 75 6d 65 6e 74 | 2e 63 6f 6d 6d 61 6e 64 |document|.command| |000013b0| 44 69 73 70 61 74 63 68 | 65 72 2e 75 70 64 61 74 |Dispatch|er.updat| |000013c0| 65 43 6f 6d 6d 61 6e 64 | 73 28 27 63 61 6c 65 6e |eCommand|s('calen| |000013d0| 64 61 72 5f 63 6f 6d 6d | 61 6e 64 73 27 29 3b 0a |dar_comm|ands');.| |000013e0| 7d 0a 0a 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |}..agend|aListbox| |000013f0| 2e 6f 6e 46 6f 63 75 73 | 20 3d 0a 66 75 6e 63 74 |.onFocus| =.funct| |00001400| 69 6f 6e 20 6f 6e 46 6f | 63 75 73 28 29 20 7b 0a |ion onFo|cus() {.| |00001410| 20 20 20 20 76 61 72 20 | 6c 69 73 74 62 6f 78 20 | var |listbox | |00001420| 3d 20 64 6f 63 75 6d 65 | 6e 74 2e 67 65 74 45 6c |= docume|nt.getEl| |00001430| 65 6d 65 6e 74 42 79 49 | 64 28 22 61 67 65 6e 64 |ementByI|d("agend| |00001440| 61 2d 6c 69 73 74 62 6f | 78 22 29 3b 0a 20 20 20 |a-listbo|x");. | |00001450| 20 6c 69 73 74 62 6f 78 | 2e 72 65 6d 6f 76 65 41 | listbox|.removeA| |00001460| 74 74 72 69 62 75 74 65 | 28 22 64 69 73 61 62 6c |ttribute|("disabl| |00001470| 65 64 22 29 3b 0a 20 20 | 20 20 74 68 69 73 2e 65 |ed");. | this.e| |00001480| 6e 61 62 6c 65 4c 69 73 | 74 49 74 65 6d 73 28 29 |nableLis|tItems()| |00001490| 3b 0a 7d 0a 0a 61 67 65 | 6e 64 61 4c 69 73 74 62 |;.}..age|ndaListb| |000014a0| 6f 78 2e 6f 6e 42 6c 75 | 72 20 3d 0a 66 75 6e 63 |ox.onBlu|r =.func| |000014b0| 74 69 6f 6e 20 6f 6e 42 | 6c 75 72 28 29 20 7b 0a |tion onB|lur() {.| |000014c0| 20 20 20 20 76 61 72 20 | 69 74 65 6d 20 20 3d 20 | var |item = | |000014d0| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |000014e0| 65 6e 74 42 79 49 64 28 | 22 61 67 65 6e 64 61 2d |entById(|"agenda-| |000014f0| 6c 69 73 74 62 6f 78 22 | 29 2e 73 65 6c 65 63 74 |listbox"|).select| |00001500| 65 64 49 74 65 6d 3b 0a | 20 20 20 20 69 66 20 28 |edItem;.| if (| |00001510| 69 74 65 6d 29 20 7b 0a | 20 20 20 20 20 20 20 20 |item) {.| | |00001520| 69 74 65 6d 2e 73 65 74 | 41 74 74 72 69 62 75 74 |item.set|Attribut| |00001530| 65 28 22 64 69 73 61 62 | 6c 65 64 22 2c 22 74 72 |e("disab|led","tr| |00001540| 75 65 22 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |ue");. | }. | |00001550| 64 6f 63 75 6d 65 6e 74 | 2e 63 6f 6d 6d 61 6e 64 |document|.command| |00001560| 44 69 73 70 61 74 63 68 | 65 72 2e 75 70 64 61 74 |Dispatch|er.updat| |00001570| 65 43 6f 6d 6d 61 6e 64 | 73 28 27 63 61 6c 65 6e |eCommand|s('calen| |00001580| 64 61 72 5f 63 6f 6d 6d | 61 6e 64 73 27 29 3b 0a |dar_comm|ands');.| |00001590| 7d 0a 0a 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |}..agend|aListbox| |000015a0| 2e 65 6e 61 62 6c 65 4c | 69 73 74 49 74 65 6d 73 |.enableL|istItems| |000015b0| 20 3d 0a 66 75 6e 63 74 | 69 6f 6e 20 65 6e 61 62 | =.funct|ion enab| |000015c0| 6c 65 4c 69 73 74 49 74 | 65 6d 73 28 29 20 7b 0a |leListIt|ems() {.| |000015d0| 20 20 20 20 76 61 72 20 | 63 68 69 6c 64 4e 6f 64 | var |childNod| |000015e0| 65 73 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 |es = doc|ument.ge| |000015f0| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 61 67 |tElement|ById("ag| |00001600| 65 6e 64 61 2d 6c 69 73 | 74 62 6f 78 22 29 2e 63 |enda-lis|tbox").c| |00001610| 68 69 6c 64 4e 6f 64 65 | 73 3b 0a 20 20 20 20 66 |hildNode|s;. f| |00001620| 6f 72 20 28 76 61 72 20 | 69 20 3d 20 30 3b 69 20 |or (var |i = 0;i | |00001630| 3c 20 63 68 69 6c 64 4e | 6f 64 65 73 2e 6c 65 6e |< childN|odes.len| |00001640| 67 74 68 3b 20 69 2b 2b | 29 20 7b 0a 20 20 20 20 |gth; i++|) {. | |00001650| 20 20 20 20 76 61 72 20 | 6c 69 73 74 49 74 65 6d | var |listItem| |00001660| 20 3d 20 63 68 69 6c 64 | 4e 6f 64 65 73 5b 69 5d | = child|Nodes[i]| |00001670| 3b 0a 20 20 20 20 20 20 | 20 20 6c 69 73 74 49 74 |;. | listIt| |00001680| 65 6d 2e 72 65 6d 6f 76 | 65 41 74 74 72 69 62 75 |em.remov|eAttribu| |00001690| 74 65 28 22 64 69 73 61 | 62 6c 65 64 22 29 3b 0a |te("disa|bled");.| |000016a0| 20 20 20 20 7d 0a 7d 0a | 0a 61 67 65 6e 64 61 4c | }.}.|.agendaL| |000016b0| 69 73 74 62 6f 78 2e 6f | 6e 4b 65 79 50 72 65 73 |istbox.o|nKeyPres| |000016c0| 73 20 3d 0a 66 75 6e 63 | 74 69 6f 6e 20 6f 6e 4b |s =.func|tion onK| |000016d0| 65 79 50 72 65 73 73 28 | 61 45 76 65 6e 74 29 20 |eyPress(|aEvent) | |000016e0| 7b 0a 20 20 20 20 76 61 | 72 20 6c 69 73 74 49 74 |{. va|r listIt| |000016f0| 65 6d 20 3d 20 61 45 76 | 65 6e 74 2e 74 61 72 67 |em = aEv|ent.targ| |00001700| 65 74 3b 0a 20 20 20 20 | 69 66 20 28 6c 69 73 74 |et;. |if (list| |00001710| 49 74 65 6d 2e 6c 6f 63 | 61 6c 4e 61 6d 65 20 3d |Item.loc|alName =| |00001720| 3d 20 22 72 69 63 68 6c | 69 73 74 62 6f 78 22 29 |= "richl|istbox")| |00001730| 20 7b 0a 20 20 20 20 20 | 20 20 20 6c 69 73 74 49 | {. | listI| |00001740| 74 65 6d 20 3d 20 6c 69 | 73 74 49 74 65 6d 2e 73 |tem = li|stItem.s| |00001750| 65 6c 65 63 74 65 64 49 | 74 65 6d 3b 0a 20 20 20 |electedI|tem;. | |00001760| 20 7d 0a 20 20 20 20 73 | 77 69 74 63 68 28 61 45 | }. s|witch(aE| |00001770| 76 65 6e 74 2e 6b 65 79 | 43 6f 64 65 29 20 7b 0a |vent.key|Code) {.| |00001780| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 61 45 76 | |case aEv| |00001790| 65 6e 74 2e 44 4f 4d 5f | 56 4b 5f 52 45 54 55 52 |ent.DOM_|VK_RETUR| |000017a0| 4e 3a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |N:. | c| |000017b0| 72 65 61 74 65 4e 65 77 | 45 76 65 6e 74 28 29 3b |reateNew|Event();| |000017c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 |. | bre| |000017d0| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 63 61 73 65 |ak;. | case| |000017e0| 20 61 45 76 65 6e 74 2e | 44 4f 4d 5f 56 4b 5f 44 | aEvent.|DOM_VK_D| |000017f0| 45 4c 45 54 45 3a 0a 20 | 20 20 20 20 20 20 20 20 |ELETE:. | | |00001800| 20 20 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | docum|ent.getE| |00001810| 6c 65 6d 65 6e 74 42 79 | 49 64 28 27 61 67 65 6e |lementBy|Id('agen| |00001820| 64 61 5f 64 65 6c 65 74 | 65 5f 65 76 65 6e 74 5f |da_delet|e_event_| |00001830| 63 6f 6d 6d 61 6e 64 27 | 29 2e 64 6f 43 6f 6d 6d |command'|).doComm| |00001840| 61 6e 64 28 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |and();. | | |00001850| 20 20 20 61 45 76 65 6e | 74 2e 73 74 6f 70 50 72 | aEven|t.stopPr| |00001860| 6f 70 61 67 61 74 69 6f | 6e 28 29 3b 0a 20 20 20 |opagatio|n();. | |00001870| 20 20 20 20 20 20 20 20 | 20 61 45 76 65 6e 74 2e | | aEvent.| |00001880| 70 72 65 76 65 6e 74 44 | 65 66 61 75 6c 74 28 29 |preventD|efault()| |00001890| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 |;. | br| |000018a0| 65 61 6b 3b 0a 20 20 20 | 20 20 20 20 20 63 61 73 |eak;. | cas| |000018b0| 65 20 61 45 76 65 6e 74 | 2e 44 4f 4d 5f 56 4b 5f |e aEvent|.DOM_VK_| |000018c0| 4c 45 46 54 3a 0a 20 20 | 20 20 20 20 20 20 20 20 |LEFT:. | | |000018d0| 20 20 69 66 20 28 21 74 | 68 69 73 2e 69 73 45 76 | if (!t|his.isEv| |000018e0| 65 6e 74 4c 69 73 74 49 | 74 65 6d 28 6c 69 73 74 |entListI|tem(list| |000018f0| 49 74 65 6d 29 29 20 7b | 0a 20 20 20 20 20 20 20 |Item)) {|. | |00001900| 20 20 20 20 20 20 20 20 | 20 6c 69 73 74 49 74 65 | | listIte| |00001910| 6d 2e 67 65 74 43 68 65 | 63 6b 62 6f 78 28 29 2e |m.getChe|ckbox().| |00001920| 73 65 74 43 68 65 63 6b | 65 64 28 66 61 6c 73 65 |setCheck|ed(false| |00001930| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7d |);. | }| |00001940| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 |. | bre| |00001950| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 63 61 73 65 |ak;. | case| |00001960| 20 61 45 76 65 6e 74 2e | 44 4f 4d 5f 56 4b 5f 52 | aEvent.|DOM_VK_R| |00001970| 49 47 48 54 3a 0a 20 20 | 20 20 20 20 20 20 20 20 |IGHT:. | | |00001980| 20 20 69 66 20 28 21 74 | 68 69 73 2e 69 73 45 76 | if (!t|his.isEv| |00001990| 65 6e 74 4c 69 73 74 49 | 74 65 6d 28 6c 69 73 74 |entListI|tem(list| |000019a0| 49 74 65 6d 29 29 20 7b | 0a 20 20 20 20 20 20 20 |Item)) {|. | |000019b0| 20 20 20 20 20 20 20 20 | 20 6c 69 73 74 49 74 65 | | listIte| |000019c0| 6d 2e 67 65 74 43 68 65 | 63 6b 62 6f 78 28 29 2e |m.getChe|ckbox().| |000019d0| 73 65 74 43 68 65 63 6b | 65 64 28 74 72 75 65 29 |setCheck|ed(true)| |000019e0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a |;. | }.| |000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea| |00001a00| 6b 3b 0a 20 20 20 20 7d | 0a 7d 0a 0a 61 67 65 6e |k;. }|.}..agen| |00001a10| 64 61 4c 69 73 74 62 6f | 78 2e 65 64 69 74 53 65 |daListbo|x.editSe| |00001a20| 6c 65 63 74 65 64 49 74 | 65 6d 20 3d 0a 66 75 6e |lectedIt|em =.fun| |00001a30| 63 74 69 6f 6e 20 65 64 | 69 74 53 65 6c 65 63 74 |ction ed|itSelect| |00001a40| 65 64 49 74 65 6d 28 61 | 45 76 65 6e 74 29 20 7b |edItem(a|Event) {| |00001a50| 0a 20 20 20 20 76 61 72 | 20 6c 69 73 74 49 74 65 |. var| listIte| |00001a60| 6d 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 |m = doc|ument.ge| |00001a70| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 61 67 |tElement|ById("ag| |00001a80| 65 6e 64 61 2d 6c 69 73 | 74 62 6f 78 22 29 2e 73 |enda-lis|tbox").s| |00001a90| 65 6c 65 63 74 65 64 49 | 74 65 6d 3b 0a 20 20 20 |electedI|tem;. | |00001aa0| 20 69 66 20 28 6c 69 73 | 74 49 74 65 6d 29 20 7b | if (lis|tItem) {| |00001ab0| 0a 20 20 20 20 20 20 20 | 20 6d 6f 64 69 66 79 45 |. | modifyE| |00001ac0| 76 65 6e 74 57 69 74 68 | 44 69 61 6c 6f 67 28 67 |ventWith|Dialog(g| |00001ad0| 65 74 4f 63 63 75 72 72 | 65 6e 63 65 4f 72 50 61 |etOccurr|enceOrPa| |00001ae0| 72 65 6e 74 28 6c 69 73 | 74 49 74 65 6d 2e 67 65 |rent(lis|tItem.ge| |00001af0| 74 49 74 65 6d 28 29 29 | 29 3b 0a 20 20 20 20 7d |tItem())|);. }| |00001b00| 20 20 20 20 0a 7d 0a 0a | 61 67 65 6e 64 61 4c 69 | .}..|agendaLi| |00001b10| 73 74 62 6f 78 2e 66 69 | 6e 64 50 65 72 69 6f 64 |stbox.fi|ndPeriod| |00001b20| 73 46 6f 72 49 74 65 6d | 20 3d 0a 66 75 6e 63 74 |sForItem| =.funct| |00001b30| 69 6f 6e 20 66 69 6e 64 | 50 65 72 69 6f 64 73 46 |ion find|PeriodsF| |00001b40| 6f 72 49 74 65 6d 28 61 | 49 74 65 6d 29 20 7b 0a |orItem(a|Item) {.| |00001b50| 20 20 20 20 76 61 72 20 | 72 65 74 50 65 72 69 6f | var |retPerio| |00001b60| 64 73 20 3d 20 5b 5d 3b | 0a 20 20 20 20 66 6f 72 |ds = [];|. for| |00001b70| 20 28 76 61 72 20 69 20 | 3d 20 30 3b 20 69 20 3c | (var i |= 0; i <| |00001b80| 20 74 68 69 73 2e 70 65 | 72 69 6f 64 73 2e 6c 65 | this.pe|riods.le| |00001b90| 6e 67 74 68 3b 20 69 2b | 2b 29 20 7b 0a 20 20 20 |ngth; i+|+) {. | |00001ba0| 20 20 20 20 20 69 66 20 | 28 74 68 69 73 2e 70 65 | if |(this.pe| |00001bb0| 72 69 6f 64 73 5b 69 5d | 2e 6f 70 65 6e 29 20 7b |riods[i]|.open) {| |00001bc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if | |00001bd0| 28 63 68 65 63 6b 49 66 | 49 6e 52 61 6e 67 65 28 |(checkIf|InRange(| |00001be0| 61 49 74 65 6d 2c 20 74 | 68 69 73 2e 70 65 72 69 |aItem, t|his.peri| |00001bf0| 6f 64 73 5b 69 5d 2e 73 | 74 61 72 74 2c 20 74 68 |ods[i].s|tart, th| |00001c00| 69 73 2e 70 65 72 69 6f | 64 73 5b 69 5d 2e 65 6e |is.perio|ds[i].en| |00001c10| 64 29 29 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 |d)) {. | | |00001c20| 20 20 20 20 20 20 72 65 | 74 50 65 72 69 6f 64 73 | re|tPeriods| |00001c30| 2e 70 75 73 68 28 74 68 | 69 73 2e 70 65 72 69 6f |.push(th|is.perio| |00001c40| 64 73 5b 69 5d 29 3b 0a | 20 20 20 20 20 20 20 20 |ds[i]);.| | |00001c50| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 7d 0a | }. | }.| |00001c60| 20 20 20 20 7d 0a 20 20 | 20 20 72 65 74 75 72 6e | }. | return| |00001c70| 20 72 65 74 50 65 72 69 | 6f 64 73 3b 0a 7d 3b 0a | retPeri|ods;.};.| |00001c80| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 67 |.agendaL|istbox.g| |00001c90| 65 74 53 74 61 72 74 20 | 3d 0a 66 75 6e 63 74 69 |etStart |=.functi| |00001ca0| 6f 6e 20 67 65 74 53 74 | 61 72 74 28 29 7b 0a 20 |on getSt|art(){. | |00001cb0| 20 20 20 76 61 72 20 72 | 65 74 53 74 61 72 74 20 | var r|etStart | |00001cc0| 3d 20 6e 75 6c 6c 3b 0a | 20 20 20 20 66 6f 72 20 |= null;.| for | |00001cd0| 28 76 61 72 20 69 20 3d | 20 30 3b 20 69 20 3c 20 |(var i =| 0; i < | |00001ce0| 74 68 69 73 2e 70 65 72 | 69 6f 64 73 2e 6c 65 6e |this.per|iods.len| |00001cf0| 67 74 68 3b 20 69 2b 2b | 29 20 7b 0a 20 20 20 20 |gth; i++|) {. | |00001d00| 20 20 20 20 69 66 20 28 | 74 68 69 73 2e 70 65 72 | if (|this.per| |00001d10| 69 6f 64 73 5b 69 5d 2e | 6f 70 65 6e 29 20 7b 0a |iods[i].|open) {.| |00001d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 53 | | retS| |00001d30| 74 61 72 74 20 3d 20 74 | 68 69 73 2e 70 65 72 69 |tart = t|his.peri| |00001d40| 6f 64 73 5b 69 5d 2e 73 | 74 61 72 74 3b 0a 20 20 |ods[i].s|tart;. | |00001d50| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;| |00001d60| 0a 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 7d |. | }. }| |00001d70| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 72 65 74 53 |. ret|urn retS| |00001d80| 74 61 72 74 3b 0a 7d 0a | 0a 61 67 65 6e 64 61 4c |tart;.}.|.agendaL| |00001d90| 69 73 74 62 6f 78 2e 67 | 65 74 45 6e 64 20 3d 0a |istbox.g|etEnd =.| |00001da0| 66 75 6e 63 74 69 6f 6e | 20 67 65 74 45 6e 64 28 |function| getEnd(| |00001db0| 29 7b 0a 20 20 20 20 76 | 61 72 20 72 65 74 45 6e |){. v|ar retEn| |00001dc0| 64 20 3d 20 6e 75 6c 6c | 3b 0a 20 20 20 20 66 6f |d = null|;. fo| |00001dd0| 72 20 28 76 61 72 20 69 | 20 3d 20 74 68 69 73 2e |r (var i| = this.| |00001de0| 70 65 72 69 6f 64 73 2e | 6c 65 6e 67 74 68 20 2d |periods.|length -| |00001df0| 20 31 3b 20 69 20 3e 3d | 20 30 3b 20 69 2d 2d 29 | 1; i >=| 0; i--)| |00001e00| 20 7b 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 74 | {. | if (t| |00001e10| 68 69 73 2e 70 65 72 69 | 6f 64 73 5b 69 5d 2e 6f |his.peri|ods[i].o| |00001e20| 70 65 6e 29 20 7b 0a 20 | 20 20 20 20 20 20 20 20 |pen) {. | | |00001e30| 20 20 20 72 65 74 45 6e | 64 20 3d 20 74 68 69 73 | retEn|d = this| |00001e40| 2e 70 65 72 69 6f 64 73 | 5b 69 5d 2e 65 6e 64 3b |.periods|[i].end;| |00001e50| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 |. | bre| |00001e60| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 20 20 |ak;. | }. | |00001e70| 20 20 7d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 72 | }. |return r| |00001e80| 65 74 45 6e 64 3b 0a 7d | 0a 0a 61 67 65 6e 64 61 |etEnd;.}|..agenda| |00001e90| 4c 69 73 74 62 6f 78 2e | 61 64 64 49 74 65 6d 42 |Listbox.|addItemB| |00001ea0| 65 66 6f 72 65 20 3d 0a | 66 75 6e 63 74 69 6f 6e |efore =.|function| |00001eb0| 20 61 64 64 49 74 65 6d | 42 65 66 6f 72 65 28 61 | addItem|Before(a| |00001ec0| 4e 65 77 49 74 65 6d 2c | 20 61 41 67 65 6e 64 61 |NewItem,| aAgenda| |00001ed0| 49 74 65 6d 2c 20 61 50 | 65 72 69 6f 64 2c 20 76 |Item, aP|eriod, v| |00001ee0| 69 73 69 62 6c 65 29 20 | 7b 0a 20 20 20 20 76 61 |isible) |{. va| |00001ef0| 72 20 6e 65 77 65 6c 65 | 6d 65 6e 74 20 3d 20 6e |r newele|ment = n| |00001f00| 75 6c 6c 3b 0a 20 20 20 | 20 69 66 20 28 61 4e 65 |ull;. | if (aNe| |00001f10| 77 49 74 65 6d 2e 73 74 | 61 72 74 44 61 74 65 2e |wItem.st|artDate.| |00001f20| 69 73 44 61 74 65 29 20 | 7b 0a 20 20 20 20 20 20 |isDate) |{. | |00001f30| 20 20 6e 65 77 65 6c 65 | 6d 65 6e 74 20 3d 20 74 | newele|ment = t| |00001f40| 68 69 73 2e 6e 65 77 61 | 6c 6c 64 61 79 65 76 65 |his.newa|lldayeve| |00001f50| 6e 74 6c 69 73 74 49 74 | 65 6d 2e 63 6c 6f 6e 65 |ntlistIt|em.clone| |00001f60| 4e 6f 64 65 28 74 72 75 | 65 29 3b 0a 20 20 20 20 |Node(tru|e);. | |00001f70| 7d 20 65 6c 73 65 20 7b | 0a 20 20 20 20 20 20 20 |} else {|. | |00001f80| 6e 65 77 65 6c 65 6d 65 | 6e 74 20 3d 20 74 68 69 |neweleme|nt = thi| |00001f90| 73 2e 65 76 65 6e 74 6c | 69 73 74 49 74 65 6d 2e |s.eventl|istItem.| |00001fa0| 63 6c 6f 6e 65 4e 6f 64 | 65 28 74 72 75 65 29 3b |cloneNod|e(true);| |00001fb0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 2f 2f 20 73 65 |. }. | // se| |00001fc0| 74 20 74 68 65 20 69 74 | 65 6d 20 61 74 20 74 68 |t the it|em at th| |00001fd0| 65 20 72 69 63 68 6c 69 | 73 74 49 74 65 6d 2e 20 |e richli|stItem. | |00001fe0| 57 68 65 6e 20 74 68 65 | 20 64 75 72 61 74 69 6f |When the| duratio| |00001ff0| 6e 20 6f 66 20 74 68 65 | 20 70 65 72 69 6f 64 0a |n of the| period.| |00002000| 20 20 20 20 2f 2f 20 69 | 73 20 62 69 67 67 65 72 | // i|s bigger| |00002010| 20 74 68 61 6e 20 31 20 | 28 64 61 79 29 20 74 68 | than 1 |(day) th| |00002020| 65 20 73 74 61 72 74 74 | 69 6d 65 20 6f 66 20 74 |e startt|ime of t| |00002030| 68 65 20 69 74 65 6d 20 | 68 61 73 20 74 6f 20 69 |he item |has to i| |00002040| 6e 63 6c 75 64 65 0a 20 | 20 20 20 2f 2f 20 69 6e |nclude. | // in| |00002050| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about | |00002060| 74 68 65 20 64 61 79 20 | 6f 66 20 74 68 65 20 69 |the day |of the i| |00002070| 74 65 6d 0a 20 20 20 20 | 69 66 20 28 61 41 67 65 |tem. |if (aAge| |00002080| 6e 64 61 49 74 65 6d 20 | 3d 3d 20 6e 75 6c 6c 29 |ndaItem |== null)| |00002090| 20 7b 0a 20 20 20 20 20 | 20 20 20 74 68 69 73 2e | {. | this.| |000020a0| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 43 6f 6e |agendaLi|stboxCon| |000020b0| 74 72 6f 6c 2e 61 70 70 | 65 6e 64 43 68 69 6c 64 |trol.app|endChild| |000020c0| 28 6e 65 77 65 6c 65 6d | 65 6e 74 29 3b 0a 20 20 |(newelem|ent);. | |000020d0| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 20 20 20 20 20 | } else| {. | |000020e0| 20 20 20 74 68 69 73 2e | 61 67 65 6e 64 61 4c 69 | this.|agendaLi| |000020f0| 73 74 62 6f 78 43 6f 6e | 74 72 6f 6c 2e 69 6e 73 |stboxCon|trol.ins| |00002100| 65 72 74 42 65 66 6f 72 | 65 28 6e 65 77 65 6c 65 |ertBefor|e(newele| |00002110| 6d 65 6e 74 2c 20 61 41 | 67 65 6e 64 61 49 74 65 |ment, aA|gendaIte| |00002120| 6d 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 6e 65 |m);. |}. ne| |00002130| 77 65 6c 65 6d 65 6e 74 | 2e 73 65 74 49 74 65 6d |welement|.setItem| |00002140| 28 61 4e 65 77 49 74 65 | 6d 2c 20 28 61 50 65 72 |(aNewIte|m, (aPer| |00002150| 69 6f 64 2e 64 75 72 61 | 74 69 6f 6e 20 3e 20 31 |iod.dura|tion > 1| |00002160| 29 29 3b 0a 20 20 20 20 | 6e 65 77 65 6c 65 6d 65 |));. |neweleme| |00002170| 6e 74 2e 72 65 6d 6f 76 | 65 41 74 74 72 69 62 75 |nt.remov|eAttribu| |00002180| 74 65 28 22 73 65 6c 65 | 63 74 65 64 22 29 3b 0a |te("sele|cted");.| |00002190| 20 20 20 20 72 65 74 75 | 72 6e 20 6e 65 77 65 6c | retu|rn newel| |000021a0| 65 6d 65 6e 74 3b 0a 7d | 0a 0a 61 67 65 6e 64 61 |ement;.}|..agenda| |000021b0| 4c 69 73 74 62 6f 78 2e | 61 64 64 49 74 65 6d 20 |Listbox.|addItem | |000021c0| 3d 0a 66 75 6e 63 74 69 | 6f 6e 20 61 64 64 49 74 |=.functi|on addIt| |000021d0| 65 6d 28 61 49 74 65 6d | 29 20 7b 0a 20 20 20 20 |em(aItem|) {. | |000021e0| 69 66 20 28 21 69 73 45 | 76 65 6e 74 28 61 49 74 |if (!isE|vent(aIt| |000021f0| 65 6d 29 29 20 7b 0a 20 | 20 20 20 20 20 20 20 72 |em)) {. | r| |00002200| 65 74 75 72 6e 20 6e 75 | 6c 6c 3b 0a 20 20 20 20 |eturn nu|ll;. | |00002210| 7d 0a 20 20 20 20 76 61 | 72 20 70 65 72 69 6f 64 |}. va|r period| |00002220| 73 20 3d 20 74 68 69 73 | 2e 66 69 6e 64 50 65 72 |s = this|.findPer| |00002230| 69 6f 64 73 46 6f 72 49 | 74 65 6d 28 61 49 74 65 |iodsForI|tem(aIte| |00002240| 6d 29 3b 0a 20 20 20 20 | 69 66 20 28 70 65 72 69 |m);. |if (peri| |00002250| 6f 64 73 2e 6c 65 6e 67 | 74 68 20 3d 3d 20 30 29 |ods.leng|th == 0)| |00002260| 20 7b 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 | {. | retur| |00002270| 6e 20 6e 75 6c 6c 3b 0a | 20 20 20 20 7d 0a 20 20 |n null;.| }. | |00002280| 20 20 66 6f 72 20 28 76 | 61 72 20 69 20 3d 20 30 | for (v|ar i = 0| |00002290| 3b 20 69 20 3c 20 70 65 | 72 69 6f 64 73 2e 6c 65 |; i < pe|riods.le| |000022a0| 6e 67 74 68 3b 20 69 2b | 2b 29 20 7b 0a 20 20 20 |ngth; i+|+) {. | |000022b0| 20 20 20 20 20 70 65 72 | 69 6f 64 20 3d 20 70 65 | per|iod = pe| |000022c0| 72 69 6f 64 73 5b 69 5d | 3b 0a 20 20 20 20 20 20 |riods[i]|;. | |000022d0| 20 20 76 61 72 20 63 6f | 6d 70 6c 69 73 74 49 74 | var co|mplistIt| |000022e0| 65 6d 20 3d 20 70 65 72 | 69 6f 64 2e 6c 69 73 74 |em = per|iod.list| |000022f0| 49 74 65 6d 3b 0a 20 20 | 20 20 20 20 20 20 76 61 |Item;. | va| |00002300| 72 20 76 69 73 69 62 6c | 65 20 3d 20 63 6f 6d 70 |r visibl|e = comp| |00002310| 6c 69 73 74 49 74 65 6d | 2e 67 65 74 43 68 65 63 |listItem|.getChec| |00002320| 6b 62 6f 78 28 29 2e 63 | 68 65 63 6b 65 64 3b 0a |kbox().c|hecked;.| |00002330| 20 20 20 20 20 20 20 20 | 76 61 72 20 6e 65 77 6c | |var newl| |00002340| 69 73 74 49 74 65 6d 20 | 3d 20 6e 75 6c 6c 3b 0a |istItem |= null;.| |00002350| 20 20 20 20 20 20 20 20 | 69 66 20 28 28 61 49 74 | |if ((aIt| |00002360| 65 6d 2e 73 74 61 72 74 | 44 61 74 65 2e 69 73 44 |em.start|Date.isD| |00002370| 61 74 65 29 20 26 26 20 | 28 70 65 72 69 6f 64 2e |ate) && |(period.| |00002380| 64 75 72 61 74 69 6f 6e | 20 3d 3d 20 31 29 29 20 |duration| == 1)) | |00002390| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |{. | if| |000023a0| 20 28 74 68 69 73 2e 67 | 65 74 4c 69 73 74 49 74 | (this.g|etListIt| |000023b0| 65 6d 73 28 61 49 74 65 | 6d 2c 20 70 65 72 69 6f |ems(aIte|m, perio| |000023c0| 64 29 2e 6c 65 6e 67 74 | 68 20 3d 3d 20 30 29 20 |d).lengt|h == 0) | |000023d0| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | | |000023e0| 20 20 74 68 69 73 2e 61 | 64 64 49 74 65 6d 42 65 | this.a|ddItemBe| |000023f0| 66 6f 72 65 28 61 49 74 | 65 6d 2c 20 70 65 72 69 |fore(aIt|em, peri| |00002400| 6f 64 2e 6c 69 73 74 49 | 74 65 6d 2e 6e 65 78 74 |od.listI|tem.next| |00002410| 53 69 62 6c 69 6e 67 2c | 20 70 65 72 69 6f 64 2c |Sibling,| period,| |00002420| 20 76 69 73 69 62 6c 65 | 29 3b 0a 20 20 20 20 20 | visible|);. | |00002430| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. | |00002440| 20 7d 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 20 20 | } else |{. | |00002450| 20 20 20 20 20 20 64 6f | 20 7b 0a 20 20 20 20 20 | do| {. | |00002460| 20 20 20 20 20 20 20 20 | 20 20 20 76 61 72 20 70 | | var p| |00002470| 72 65 76 6c 69 73 74 49 | 74 65 6d 20 3d 20 63 6f |revlistI|tem = co| |00002480| 6d 70 6c 69 73 74 49 74 | 65 6d 3b 0a 20 20 20 20 |mplistIt|em;. | |00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 76 61 72 20 | | var | |000024a0| 63 6f 6d 70 6c 69 73 74 | 49 74 65 6d 20 3d 20 63 |complist|Item = c| |000024b0| 6f 6d 70 6c 69 73 74 49 | 74 65 6d 2e 6e 65 78 74 |omplistI|tem.next| |000024c0| 53 69 62 6c 69 6e 67 3b | 0a 20 20 20 20 20 20 20 |Sibling;|. | |000024d0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 21 74 68 | | if (!th| |000024e0| 69 73 2e 69 73 45 76 65 | 6e 74 4c 69 73 74 49 74 |is.isEve|ntListIt| |000024f0| 65 6d 28 63 6f 6d 70 6c | 69 73 74 49 74 65 6d 29 |em(compl|istItem)| |00002500| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00002510| 20 20 20 20 20 20 20 20 | 6e 65 77 6c 69 73 74 49 | |newlistI| |00002520| 74 65 6d 20 3d 20 74 68 | 69 73 2e 61 64 64 49 74 |tem = th|is.addIt| |00002530| 65 6d 42 65 66 6f 72 65 | 28 61 49 74 65 6d 2c 20 |emBefore|(aItem, | |00002540| 63 6f 6d 70 6c 69 73 74 | 49 74 65 6d 2c 20 70 65 |complist|Item, pe| |00002550| 72 69 6f 64 2c 20 76 69 | 73 69 62 6c 65 29 3b 0a |riod, vi|sible);.| |00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002570| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. | |00002580| 20 20 20 20 20 20 20 20 | 20 20 20 7d 20 65 6c 73 | | } els| |00002590| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e {. | | |000025a0| 20 20 20 20 20 20 20 20 | 76 61 72 20 63 6f 6d 70 | |var comp| |000025b0| 69 74 65 6d 20 3d 20 63 | 6f 6d 70 6c 69 73 74 49 |item = c|omplistI| |000025c0| 74 65 6d 2e 67 65 74 49 | 74 65 6d 28 29 3b 0a 20 |tem.getI|tem();. | |000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000025e0| 20 20 20 69 66 20 28 74 | 68 69 73 2e 69 73 53 61 | if (t|his.isSa| |000025f0| 6d 65 45 76 65 6e 74 28 | 61 49 74 65 6d 2c 20 63 |meEvent(|aItem, c| |00002600| 6f 6d 70 69 74 65 6d 29 | 29 20 7b 0a 20 20 20 20 |ompitem)|) {. | |00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002620| 20 20 20 20 2f 2f 20 54 | 68 65 20 73 61 6d 65 20 | // T|he same | |00002630| 65 76 65 6e 74 20 6f 63 | 63 75 72 73 20 6f 6e 20 |event oc|curs on | |00002640| 73 65 76 65 72 61 6c 20 | 63 61 6c 65 6e 64 61 72 |several |calendar| |00002650| 73 20 62 75 74 20 77 65 | 20 6f 6e 6c 79 0a 20 20 |s but we| only. | |00002660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002670| 20 20 20 20 20 20 2f 2f | 20 64 69 73 70 6c 61 79 | //| display| |00002680| 20 74 68 65 20 66 69 72 | 73 74 20 6f 6e 65 2e 0a | the fir|st one..| |00002690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000026a0| 20 20 20 20 20 20 20 20 | 2f 2f 20 54 4f 44 4f 3a | |// TODO:| |000026b0| 20 66 69 6e 64 20 61 20 | 77 61 79 20 74 6f 20 64 | find a |way to d| |000026c0| 69 73 70 6c 61 79 20 74 | 68 69 73 20 73 70 65 63 |isplay t|his spec| |000026d0| 69 61 6c 20 63 69 72 63 | 75 6d 73 74 61 6e 63 65 |ial circ|umstance| |000026e0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |000026f0| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.| |00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002710| 20 20 20 20 7d 20 65 6c | 73 65 20 69 66 20 28 74 | } el|se if (t| |00002720| 68 69 73 2e 69 73 42 65 | 66 6f 72 65 28 61 49 74 |his.isBe|fore(aIt| |00002730| 65 6d 2c 20 63 6f 6d 70 | 69 74 65 6d 29 29 20 7b |em, comp|item)) {| |00002740| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00002750| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 74 68 69 | | if (thi| |00002760| 73 2e 69 73 53 61 6d 65 | 45 76 65 6e 74 28 61 49 |s.isSame|Event(aI| |00002770| 74 65 6d 2c 20 63 6f 6d | 70 69 74 65 6d 29 29 20 |tem, com|pitem)) | |00002780| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | | |00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 65 | | ne| |000027a0| 77 6c 69 73 74 49 74 65 | 6d 20 3d 20 74 68 69 73 |wlistIte|m = this| |000027b0| 2e 61 64 64 49 74 65 6d | 42 65 66 6f 72 65 28 61 |.addItem|Before(a| |000027c0| 49 74 65 6d 2c 20 63 6f | 6d 70 6c 69 73 74 49 74 |Item, co|mplistIt| |000027d0| 65 6d 2c 20 70 65 72 69 | 6f 64 2c 20 76 69 73 69 |em, peri|od, visi| |000027e0| 62 6c 65 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ble);. | | |000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002800| 20 20 62 72 65 61 6b 0a | 20 20 20 20 20 20 20 20 | break.| | |00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002820| 7d 20 65 6c 73 65 20 7b | 0a 20 20 20 20 20 20 20 |} else {|. | |00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002840| 20 20 20 20 20 6e 65 77 | 6c 69 73 74 49 74 65 6d | new|listItem| |00002850| 20 3d 20 74 68 69 73 2e | 61 64 64 49 74 65 6d 42 | = this.|addItemB| |00002860| 65 66 6f 72 65 28 61 49 | 74 65 6d 2c 20 63 6f 6d |efore(aI|tem, com| |00002870| 70 6c 69 73 74 49 74 65 | 6d 2c 20 70 65 72 69 6f |plistIte|m, perio| |00002880| 64 2c 20 76 69 73 69 62 | 6c 65 29 3b 0a 20 20 20 |d, visib|le);. | |00002890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000028a0| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.| |000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000028c0| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. | |000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.| |000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000028f0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 20 |}. | } | |00002900| 77 68 69 6c 65 20 28 63 | 6f 6d 70 6c 69 73 74 49 |while (c|omplistI| |00002910| 74 65 6d 29 0a 20 20 20 | 20 20 20 20 20 7d 0a 20 |tem). | }. | |00002920| 20 20 20 7d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 | }. | return | |00002930| 6e 65 77 6c 69 73 74 49 | 74 65 6d 3b 0a 7d 3b 0a |newlistI|tem;.};.| |00002940| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 69 |.agendaL|istbox.i| |00002950| 73 42 65 66 6f 72 65 20 | 3d 0a 66 75 6e 63 74 69 |sBefore |=.functi| |00002960| 6f 6e 20 69 73 42 65 66 | 6f 72 65 28 61 49 74 65 |on isBef|ore(aIte| |00002970| 6d 2c 20 61 43 6f 6d 70 | 49 74 65 6d 29 20 7b 0a |m, aComp|Item) {.| |00002980| 20 20 20 20 69 66 20 28 | 61 43 6f 6d 70 49 74 65 | if (|aCompIte| |00002990| 6d 2e 73 74 61 72 74 44 | 61 74 65 2e 64 61 79 20 |m.startD|ate.day | |000029a0| 3d 3d 20 61 49 74 65 6d | 2e 73 74 61 72 74 44 61 |== aItem|.startDa| |000029b0| 74 65 2e 64 61 79 29 20 | 7b 0a 20 20 20 20 20 20 |te.day) |{. | |000029c0| 20 20 69 66 20 28 61 49 | 74 65 6d 2e 73 74 61 72 | if (aI|tem.star| |000029d0| 74 44 61 74 65 2e 69 73 | 44 61 74 65 29 20 7b 0a |tDate.is|Date) {.| |000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu| |000029f0| 72 6e 20 74 72 75 65 3b | 0a 20 20 20 20 20 20 20 |rn true;|. | |00002a00| 20 7d 20 65 6c 73 65 20 | 69 66 20 28 61 43 6f 6d | } else |if (aCom| |00002a10| 70 49 74 65 6d 2e 73 74 | 61 72 74 44 61 74 65 2e |pItem.st|artDate.| |00002a20| 69 73 44 61 74 65 29 20 | 7b 0a 20 20 20 20 20 20 |isDate) |{. | |00002a30| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 66 61 6c | re|turn fal| |00002a40| 73 65 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 20 20 |se;. | }. | |00002a50| 20 20 7d 0a 20 20 20 20 | 76 61 72 20 63 6f 6d 70 | }. |var comp| |00002a60| 20 3d 20 61 49 74 65 6d | 2e 73 74 61 72 74 44 61 | = aItem|.startDa| |00002a70| 74 65 2e 63 6f 6d 70 61 | 72 65 28 61 43 6f 6d 70 |te.compa|re(aComp| |00002a80| 49 74 65 6d 2e 73 74 61 | 72 74 44 61 74 65 29 3b |Item.sta|rtDate);| |00002a90| 0a 20 20 20 20 69 66 20 | 28 63 6f 6d 70 20 3d 3d |. if |(comp ==| |00002aa0| 20 30 29 20 7b 0a 20 20 | 20 20 20 20 20 20 63 6f | 0) {. | co| |00002ab0| 6d 70 20 3d 20 61 49 74 | 65 6d 2e 65 6e 64 44 61 |mp = aIt|em.endDa| |00002ac0| 74 65 2e 63 6f 6d 70 61 | 72 65 28 61 43 6f 6d 70 |te.compa|re(aComp| |00002ad0| 49 74 65 6d 2e 65 6e 64 | 44 61 74 65 29 3b 0a 20 |Item.end|Date);. | |00002ae0| 20 20 20 7d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 | }. | return | |00002af0| 28 63 6f 6d 70 20 3c 3d | 20 30 29 3b 0a 7d 0a 0a |(comp <=| 0);.}..| |00002b00| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 67 |.agendaL|istbox.g| |00002b10| 65 74 4c 69 73 74 49 74 | 65 6d 73 20 3d 0a 66 75 |etListIt|ems =.fu| |00002b20| 6e 63 74 69 6f 6e 20 67 | 65 74 4c 69 73 74 49 74 |nction g|etListIt| |00002b30| 65 6d 73 28 61 49 74 65 | 6d 2c 20 61 50 65 72 69 |ems(aIte|m, aPeri| |00002b40| 6f 64 29 20 7b 0a 20 20 | 20 20 76 61 72 20 72 65 |od) {. | var re| |00002b50| 74 6c 69 73 74 49 74 65 | 6d 73 20 3d 20 6e 65 77 |tlistIte|ms = new| |00002b60| 20 41 72 72 61 79 28 29 | 3b 0a 20 20 20 20 76 61 | Array()|;. va| |00002b70| 72 20 70 65 72 69 6f 64 | 73 20 3d 20 5b 61 50 65 |r period|s = [aPe| |00002b80| 72 69 6f 64 5d 3b 0a 20 | 20 20 20 69 66 20 28 21 |riod];. | if (!| |00002b90| 61 50 65 72 69 6f 64 29 | 20 7b 0a 20 20 20 20 20 |aPeriod)| {. | |00002ba0| 20 20 20 76 61 72 20 70 | 65 72 69 6f 64 73 20 3d | var p|eriods =| |00002bb0| 20 74 68 69 73 2e 66 69 | 6e 64 50 65 72 69 6f 64 | this.fi|ndPeriod| |00002bc0| 73 46 6f 72 49 74 65 6d | 28 61 49 74 65 6d 29 3b |sForItem|(aItem);| |00002bd0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 69 66 20 28 70 |. }. | if (p| |00002be0| 65 72 69 6f 64 73 2e 6c | 65 6e 67 74 68 20 3e 20 |eriods.l|ength > | |00002bf0| 30 29 20 7b 0a 20 20 20 | 20 20 20 20 20 66 6f 72 |0) {. | for| |00002c00| 20 28 76 61 72 20 69 20 | 3d 20 30 3b 20 69 20 3c | (var i |= 0; i <| |00002c10| 20 70 65 72 69 6f 64 73 | 2e 6c 65 6e 67 74 68 3b | periods|.length;| |00002c20| 20 69 2b 2b 29 20 7b 0a | 20 20 20 20 20 20 20 20 | i++) {.| | |00002c30| 20 20 20 20 70 65 72 69 | 6f 64 20 3d 20 70 65 72 | peri|od = per| |00002c40| 69 6f 64 73 5b 69 5d 3b | 0a 20 20 20 20 20 20 20 |iods[i];|. | |00002c50| 20 20 20 20 20 76 61 72 | 20 63 6f 6d 70 6c 69 73 | var| complis| |00002c60| 74 49 74 65 6d 20 3d 20 | 70 65 72 69 6f 64 2e 6c |tItem = |period.l| |00002c70| 69 73 74 49 74 65 6d 3b | 0a 20 20 20 20 20 20 20 |istItem;|. | |00002c80| 20 20 20 20 20 64 6f 20 | 7b 0a 20 20 20 20 20 20 | do |{. | |00002c90| 20 20 20 20 20 20 20 20 | 20 20 76 61 72 20 63 6f | | var co| |00002ca0| 6d 70 6c 69 73 74 49 74 | 65 6d 20 3d 20 63 6f 6d |mplistIt|em = com| |00002cb0| 70 6c 69 73 74 49 74 65 | 6d 2e 6e 65 78 74 53 69 |plistIte|m.nextSi| |00002cc0| 62 6c 69 6e 67 3b 0a 20 | 20 20 20 20 20 20 20 20 |bling;. | | |00002cd0| 20 20 20 20 20 20 20 76 | 61 72 20 6c 65 61 76 65 | v|ar leave| |00002ce0| 6c 6f 6f 70 20 3d 20 28 | 21 74 68 69 73 2e 69 73 |loop = (|!this.is| |00002cf0| 45 76 65 6e 74 4c 69 73 | 74 49 74 65 6d 28 63 6f |EventLis|tItem(co| |00002d00| 6d 70 6c 69 73 74 49 74 | 65 6d 29 29 3b 0a 20 20 |mplistIt|em));. | |00002d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if| |00002d20| 20 28 21 6c 65 61 76 65 | 6c 6f 6f 70 29 20 7b 0a | (!leave|loop) {.| |00002d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002d40| 20 20 20 20 69 66 20 28 | 74 68 69 73 2e 69 73 53 | if (|this.isS| |00002d50| 61 6d 65 45 76 65 6e 74 | 28 61 49 74 65 6d 2c 20 |ameEvent|(aItem, | |00002d60| 63 6f 6d 70 6c 69 73 74 | 49 74 65 6d 2e 67 65 74 |complist|Item.get| |00002d70| 49 74 65 6d 28 29 29 29 | 7b 0a 20 20 20 20 20 20 |Item()))|{. | |00002d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002d90| 20 20 72 65 74 6c 69 73 | 74 49 74 65 6d 73 2e 70 | retlis|tItems.p| |00002da0| 75 73 68 28 63 6f 6d 70 | 6c 69 73 74 49 74 65 6d |ush(comp|listItem| |00002db0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | | |00002dc0| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break| |00002dd0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | | |00002de0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| | |00002df0| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. | |00002e00| 20 20 20 20 20 20 7d 20 | 77 68 69 6c 65 20 28 21 | } |while (!| |00002e10| 6c 65 61 76 65 6c 6f 6f | 70 29 0a 20 20 20 20 20 |leaveloo|p). | |00002e20| 20 20 20 7d 0a 20 20 20 | 20 7d 0a 20 20 20 20 72 | }. | }. r| |00002e30| 65 74 75 72 6e 20 72 65 | 74 6c 69 73 74 49 74 65 |eturn re|tlistIte| |00002e40| 6d 73 3b 0a 7d 0a 0a 61 | 67 65 6e 64 61 4c 69 73 |ms;.}..a|gendaLis| |00002e50| 74 62 6f 78 2e 64 65 6c | 65 74 65 49 74 65 6d 20 |tbox.del|eteItem | |00002e60| 3d 0a 66 75 6e 63 74 69 | 6f 6e 20 64 65 6c 65 74 |=.functi|on delet| |00002e70| 65 49 74 65 6d 28 61 49 | 74 65 6d 2c 20 61 4d 6f |eItem(aI|tem, aMo| |00002e80| 76 65 53 65 6c 65 63 74 | 69 6f 6e 29 20 7b 0a 20 |veSelect|ion) {. | |00002e90| 20 20 20 76 61 72 20 69 | 73 53 65 6c 65 63 74 65 | var i|sSelecte| |00002ea0| 64 20 3d 20 66 61 6c 73 | 65 3b 0a 20 20 20 20 76 |d = fals|e;. v| |00002eb0| 61 72 20 6c 69 73 74 49 | 74 65 6d 73 20 3d 20 74 |ar listI|tems = t| |00002ec0| 68 69 73 2e 67 65 74 4c | 69 73 74 49 74 65 6d 73 |his.getL|istItems| |00002ed0| 28 61 49 74 65 6d 29 3b | 0a 20 20 20 20 69 66 20 |(aItem);|. if | |00002ee0| 28 6c 69 73 74 49 74 65 | 6d 73 2e 6c 65 6e 67 74 |(listIte|ms.lengt| |00002ef0| 68 20 3e 20 30 29 20 7b | 0a 20 20 20 20 20 20 20 |h > 0) {|. | |00002f00| 20 66 6f 72 20 28 76 61 | 72 20 69 20 3d 20 6c 69 | for (va|r i = li| |00002f10| 73 74 49 74 65 6d 73 2e | 6c 65 6e 67 74 68 20 2d |stItems.|length -| |00002f20| 20 31 3b 20 69 20 3e 3d | 20 30 3b 20 69 2d 2d 29 | 1; i >=| 0; i--)| |00002f30| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 76 | {. | v| |00002f40| 61 72 20 6c 69 73 74 49 | 74 65 6d 20 3d 20 6c 69 |ar listI|tem = li| |00002f50| 73 74 49 74 65 6d 73 5b | 69 5d 3b 0a 20 20 20 20 |stItems[|i];. | |00002f60| 20 20 20 20 20 20 20 20 | 76 61 72 20 69 73 53 65 | |var isSe| |00002f70| 6c 65 63 74 65 64 32 20 | 3d 20 6c 69 73 74 49 74 |lected2 |= listIt| |00002f80| 65 6d 2e 73 65 6c 65 63 | 74 65 64 3b 0a 20 20 20 |em.selec|ted;. | |00002f90| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 69 73 53 | | if (isS| |00002fa0| 65 6c 65 63 74 65 64 32 | 20 26 26 20 21 69 73 53 |elected2| && !isS| |00002fb0| 65 6c 65 63 74 65 64 29 | 20 7b 0a 20 20 20 20 20 |elected)| {. | |00002fc0| 20 20 20 20 20 20 20 20 | 20 20 20 69 73 53 65 6c | | isSel| |00002fd0| 65 63 74 65 64 20 3d 20 | 74 72 75 65 3b 0a 20 20 |ected = |true;. | |00002fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if| |00002ff0| 20 28 61 4d 6f 76 65 53 | 65 6c 65 63 74 69 6f 6e | (aMoveS|election| |00003000| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00003010| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 6d 6f 76 | |this.mov| |00003020| 65 53 65 6c 65 63 74 69 | 6f 6e 28 29 3b 0a 20 20 |eSelecti|on();. | |00003030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.| |00003040| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 | | }. | |00003050| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 28 21 | | if ((!| |00003060| 74 68 69 73 2e 69 73 45 | 76 65 6e 74 4c 69 73 74 |this.isE|ventList| |00003070| 49 74 65 6d 28 6c 69 73 | 74 49 74 65 6d 2e 70 72 |Item(lis|tItem.pr| |00003080| 65 76 69 6f 75 73 53 69 | 62 6c 69 6e 67 29 29 20 |eviousSi|bling)) | |00003090| 26 26 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |&&. | | |000030a0| 20 20 20 28 21 74 68 69 | 73 2e 69 73 45 76 65 6e | (!thi|s.isEven| |000030b0| 74 4c 69 73 74 49 74 65 | 6d 28 6c 69 73 74 49 74 |tListIte|m(listIt| |000030c0| 65 6d 2e 6e 65 78 74 53 | 69 62 6c 69 6e 67 29 29 |em.nextS|ibling))| |000030d0| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |000030e0| 20 20 20 20 76 61 72 20 | 70 72 65 76 6c 69 73 74 | var |prevlist| |000030f0| 49 74 65 6d 20 3d 20 6c | 69 73 74 49 74 65 6d 2e |Item = l|istItem.| |00003100| 70 72 65 76 69 6f 75 73 | 53 69 62 6c 69 6e 67 3b |previous|Sibling;| |00003110| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00003120| 20 74 68 69 73 2e 61 67 | 65 6e 64 61 4c 69 73 74 | this.ag|endaList| |00003130| 62 6f 78 43 6f 6e 74 72 | 6f 6c 2e 72 65 6d 6f 76 |boxContr|ol.remov| |00003140| 65 43 68 69 6c 64 28 6c | 69 73 74 49 74 65 6d 29 |eChild(l|istItem)| |00003150| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | | |00003160| 20 20 70 72 65 76 6c 69 | 73 74 49 74 65 6d 2e 67 | prevli|stItem.g| |00003170| 65 74 43 68 65 63 6b 62 | 6f 78 28 29 2e 73 65 74 |etCheckb|ox().set| |00003180| 43 68 65 63 6b 65 64 28 | 66 61 6c 73 65 29 3b 0a |Checked(|false);.| |00003190| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 20 65 6c | | } el| |000031a0| 73 65 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |se {. | | |000031b0| 20 20 20 20 20 74 68 69 | 73 2e 61 67 65 6e 64 61 | thi|s.agenda| |000031c0| 4c 69 73 74 62 6f 78 43 | 6f 6e 74 72 6f 6c 2e 72 |ListboxC|ontrol.r| |000031d0| 65 6d 6f 76 65 43 68 69 | 6c 64 28 6c 69 73 74 49 |emoveChi|ld(listI| |000031e0| 74 65 6d 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |tem);. | | |000031f0| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 7d 0a 20 20 | }. | }. | |00003200| 20 20 7d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 69 | }. |return i| |00003210| 73 53 65 6c 65 63 74 65 | 64 3b 0a 7d 0a 0a 61 67 |sSelecte|d;.}..ag| |00003220| 65 6e 64 61 4c 69 73 74 | 62 6f 78 2e 69 73 53 61 |endaList|box.isSa| |00003230| 6d 65 45 76 65 6e 74 20 | 3d 0a 66 75 6e 63 74 69 |meEvent |=.functi| |00003240| 6f 6e 20 69 73 53 61 6d | 65 45 76 65 6e 74 28 61 |on isSam|eEvent(a| |00003250| 49 74 65 6d 2c 20 61 43 | 6f 6d 70 49 74 65 6d 29 |Item, aC|ompItem)| |00003260| 20 7b 0a 20 20 20 20 72 | 65 74 75 72 6e 20 28 28 | {. r|eturn ((| |00003270| 61 49 74 65 6d 2e 69 64 | 20 3d 3d 20 61 43 6f 6d |aItem.id| == aCom| |00003280| 70 49 74 65 6d 2e 69 64 | 29 20 26 26 0a 20 20 20 |pItem.id|) &&. | |00003290| 20 20 20 20 20 20 20 20 | 20 28 63 61 6c 47 65 74 | | (calGet| |000032a0| 53 74 61 72 74 44 61 74 | 65 28 61 49 74 65 6d 29 |StartDat|e(aItem)| |000032b0| 2e 63 6f 6d 70 61 72 65 | 28 63 61 6c 47 65 74 53 |.compare|(calGetS| |000032c0| 74 61 72 74 44 61 74 65 | 28 61 43 6f 6d 70 49 74 |tartDate|(aCompIt| |000032d0| 65 6d 29 29 20 3d 3d 20 | 30 29 29 3b 0a 7d 0a 0a |em)) == |0));.}..| |000032e0| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 69 73 |agendaLi|stbox.is| |000032f0| 45 76 65 6e 74 53 65 6c | 65 63 74 65 64 20 3d 0a |EventSel|ected =.| |00003300| 66 75 6e 63 74 69 6f 6e | 20 69 73 45 76 65 6e 74 |function| isEvent| |00003310| 53 65 6c 65 63 74 65 64 | 28 29 20 7b 0a 20 20 20 |Selected|() {. | |00003320| 20 76 61 72 20 6c 69 73 | 74 49 74 65 6d 20 3d 20 | var lis|tItem = | |00003330| 74 68 69 73 2e 61 67 65 | 6e 64 61 4c 69 73 74 62 |this.age|ndaListb| |00003340| 6f 78 43 6f 6e 74 72 6f | 6c 2e 73 65 6c 65 63 74 |oxContro|l.select| |00003350| 65 64 49 74 65 6d 3b 0a | 20 20 20 20 69 66 20 28 |edItem;.| if (| |00003360| 6c 69 73 74 49 74 65 6d | 29 20 7b 0a 20 20 20 20 |listItem|) {. | |00003370| 20 20 20 20 72 65 74 75 | 72 6e 20 28 74 68 69 73 | retu|rn (this| |00003380| 2e 69 73 45 76 65 6e 74 | 4c 69 73 74 49 74 65 6d |.isEvent|ListItem| |00003390| 28 6c 69 73 74 49 74 65 | 6d 29 29 3b 0a 20 20 20 |(listIte|m));. | |000033a0| 20 7d 0a 20 20 20 20 72 | 65 74 75 72 6e 20 66 61 | }. r|eturn fa| |000033b0| 6c 73 65 3b 0a 7d 0a 0a | 61 67 65 6e 64 61 4c 69 |lse;.}..|agendaLi| |000033c0| 73 74 62 6f 78 2e 64 65 | 6c 65 74 65 53 65 6c 65 |stbox.de|leteSele| |000033d0| 63 74 65 64 49 74 65 6d | 20 3d 0a 66 75 6e 63 74 |ctedItem| =.funct| |000033e0| 69 6f 6e 20 64 65 6c 65 | 74 65 53 65 6c 65 63 74 |ion dele|teSelect| |000033f0| 65 64 49 74 65 6d 28 61 | 44 6f 4e 6f 74 43 6f 6e |edItem(a|DoNotCon| |00003400| 66 69 72 6d 29 20 7b 0a | 20 20 20 20 76 61 72 20 |firm) {.| var | |00003410| 6c 69 73 74 49 74 65 6d | 20 3d 20 74 68 69 73 2e |listItem| = this.| |00003420| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 43 6f 6e |agendaLi|stboxCon| |00003430| 74 72 6f 6c 2e 73 65 6c | 65 63 74 65 64 49 74 65 |trol.sel|ectedIte| |00003440| 6d 3b 0a 20 20 20 20 76 | 61 72 20 73 65 6c 65 63 |m;. v|ar selec| |00003450| 74 65 64 49 74 65 6d 73 | 20 3d 20 5b 6c 69 73 74 |tedItems| = [list| |00003460| 49 74 65 6d 2e 67 65 74 | 49 74 65 6d 28 29 5d 3b |Item.get|Item()];| |00003470| 0a 20 20 20 20 69 66 20 | 28 74 68 69 73 2e 69 73 |. if |(this.is| |00003480| 45 76 65 6e 74 4c 69 73 | 74 49 74 65 6d 28 6c 69 |EventLis|tItem(li| |00003490| 73 74 49 74 65 6d 29 29 | 20 7b 0a 20 20 20 20 20 |stItem))| {. | |000034a0| 20 20 20 63 61 6c 65 6e | 64 61 72 56 69 65 77 43 | calen|darViewC| |000034b0| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 64 65 6c 65 74 65 |ontrolle|r.delete| |000034c0| 4f 63 63 75 72 72 65 6e | 63 65 73 28 73 65 6c 65 |Occurren|ces(sele| |000034d0| 63 74 65 64 49 74 65 6d | 73 2e 6c 65 6e 67 74 68 |ctedItem|s.length| |000034e0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | | |000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003510| 20 20 20 73 65 6c 65 63 | 74 65 64 49 74 65 6d 73 | selec|tedItems| |00003520| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | | |00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003550| 20 20 20 66 61 6c 73 65 | 2c 0a 20 20 20 20 20 20 | false|,. | |00003560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003580| 20 20 20 20 20 20 20 20 | 20 20 20 61 44 6f 4e 6f | | aDoNo| |00003590| 74 43 6f 6e 66 69 72 6d | 29 3b 0a 20 20 20 20 7d |tConfirm|);. }| |000035a0| 0a 7d 0a 0a 61 67 65 6e | 64 61 4c 69 73 74 62 6f |.}..agen|daListbo| |000035b0| 78 2e 63 72 65 61 74 65 | 4e 65 77 45 76 65 6e 74 |x.create|NewEvent| |000035c0| 20 3d 0a 66 75 6e 63 74 | 69 6f 6e 20 63 72 65 61 | =.funct|ion crea| |000035d0| 74 65 4e 65 77 45 76 65 | 6e 74 28 61 45 76 65 6e |teNewEve|nt(aEven| |000035e0| 74 29 20 7b 0a 20 20 20 | 20 69 66 20 28 61 45 76 |t) {. | if (aEv| |000035f0| 65 6e 74 2e 74 61 72 67 | 65 74 20 69 6e 73 74 61 |ent.targ|et insta| |00003600| 6e 63 65 6f 66 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |nceof Co|mponents| |00003610| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 44 |.interfa|ces.nsID| |00003620| 4f 4d 58 55 4c 53 65 6c | 65 63 74 43 6f 6e 74 72 |OMXULSel|ectContr| |00003630| 6f 6c 49 74 65 6d 45 6c | 65 6d 65 6e 74 29 20 7b |olItemEl|ement) {| |00003640| 0a 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 3b |. | return;| |00003650| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 2f 2f 20 43 |. }..| // C| |00003660| 72 65 61 74 65 20 6e 65 | 77 20 65 76 65 6e 74 20 |reate ne|w event | |00003670| 66 6f 72 20 74 68 65 20 | 64 61 74 65 20 63 75 72 |for the |date cur| |00003680| 72 65 6e 74 6c 79 20 64 | 69 73 70 6c 61 79 65 64 |rently d|isplayed| |00003690| 20 69 6e 20 74 68 65 20 | 61 67 65 6e 64 61 2e 20 | in the |agenda. | |000036a0| 53 65 74 74 69 6e 67 20 | 0a 20 20 20 20 2f 2f 20 |Setting |. // | |000036b0| 69 73 44 61 74 65 20 3d | 20 74 72 75 65 20 61 75 |isDate =| true au| |000036c0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 6d 61 6b 65 |tomatica|lly make| |000036d0| 73 20 74 68 65 20 73 74 | 61 72 74 20 74 69 6d 65 |s the st|art time| |000036e0| 20 62 65 20 74 68 65 20 | 6e 65 78 74 20 66 75 6c | be the |next ful| |000036f0| 6c 20 68 6f 75 72 2e 0a | 20 20 20 20 76 61 72 20 |l hour..| var | |00003700| 65 76 65 6e 74 53 74 61 | 72 74 20 3d 20 74 68 69 |eventSta|rt = thi| |00003710| 73 2e 74 6f 64 61 79 2e | 73 74 61 72 74 2e 63 6c |s.today.|start.cl| |00003720| 6f 6e 65 28 29 3b 0a 20 | 20 20 20 65 76 65 6e 74 |one();. | event| |00003730| 53 74 61 72 74 2e 69 73 | 44 61 74 65 20 3d 20 74 |Start.is|Date = t| |00003740| 72 75 65 3b 0a 20 20 20 | 20 63 72 65 61 74 65 45 |rue;. | createE| |00003750| 76 65 6e 74 57 69 74 68 | 44 69 61 6c 6f 67 28 67 |ventWith|Dialog(g| |00003760| 65 74 53 65 6c 65 63 74 | 65 64 43 61 6c 65 6e 64 |etSelect|edCalend| |00003770| 61 72 28 29 2c 20 65 76 | 65 6e 74 53 74 61 72 74 |ar(), ev|entStart| |00003780| 29 3b 0a 7d 0a 0a 61 67 | 65 6e 64 61 4c 69 73 74 |);.}..ag|endaList| |00003790| 62 6f 78 2e 62 75 69 6c | 64 41 67 65 6e 64 61 50 |box.buil|dAgendaP| |000037a0| 6f 70 75 70 4d 65 6e 75 | 20 3d 0a 66 75 6e 63 74 |opupMenu| =.funct| |000037b0| 69 6f 6e 20 65 6e 61 62 | 6c 65 41 67 65 6e 64 61 |ion enab|leAgenda| |000037c0| 50 6f 70 75 70 4d 65 6e | 75 28 61 50 6f 70 75 70 |PopupMen|u(aPopup| |000037d0| 4d 65 6e 75 29 7b 0a 20 | 20 20 20 76 61 72 20 6c |Menu){. | var l| |000037e0| 69 73 74 49 74 65 6d 20 | 3d 20 74 68 69 73 2e 61 |istItem |= this.a| |000037f0| 67 65 6e 64 61 4c 69 73 | 74 62 6f 78 43 6f 6e 74 |gendaLis|tboxCont| |00003800| 72 6f 6c 2e 73 65 6c 65 | 63 74 65 64 49 74 65 6d |rol.sele|ctedItem| |00003810| 3b 0a 20 20 20 20 76 61 | 72 20 65 6e 61 62 6c 65 |;. va|r enable| |00003820| 64 20 3d 20 74 68 69 73 | 2e 69 73 45 76 65 6e 74 |d = this|.isEvent| |00003830| 4c 69 73 74 49 74 65 6d | 28 6c 69 73 74 49 74 65 |ListItem|(listIte| |00003840| 6d 29 3b 0a 20 20 20 20 | 76 61 72 20 70 6f 70 75 |m);. |var popu| |00003850| 70 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 67 65 74 |p = docu|ment.get| |00003860| 45 6c 65 6d 65 6e 74 42 | 79 49 64 28 22 61 67 65 |ElementB|yId("age| |00003870| 6e 64 61 2d 6d 65 6e 75 | 22 29 3b 0a 20 20 20 20 |nda-menu|");. | |00003880| 77 68 69 6c 65 20 28 70 | 6f 70 75 70 2e 68 61 73 |while (p|opup.has| |00003890| 43 68 69 6c 64 4e 6f 64 | 65 73 28 29 29 20 7b 0a |ChildNod|es()) {.| |000038a0| 20 20 20 20 20 20 20 20 | 70 6f 70 75 70 2e 72 65 | |popup.re| |000038b0| 6d 6f 76 65 43 68 69 6c | 64 28 70 6f 70 75 70 2e |moveChil|d(popup.| |000038c0| 66 69 72 73 74 43 68 69 | 6c 64 29 3b 0a 20 20 20 |firstChi|ld);. | |000038d0| 20 7d 0a 20 20 20 20 76 | 61 72 20 6d 65 6e 75 69 | }. v|ar menui| |000038e0| 74 65 6d 73 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e |tems = d|ocument.| |000038f0| 67 65 74 45 6c 65 6d 65 | 6e 74 42 79 49 64 28 22 |getEleme|ntById("| |00003900| 61 67 65 6e 64 61 2d 6d | 65 6e 75 2d 62 6f 78 22 |agenda-m|enu-box"| |00003910| 29 2e 63 68 69 6c 64 4e | 6f 64 65 73 3b 0a 20 20 |).childN|odes;. | |00003920| 20 20 66 6f 72 20 28 76 | 61 72 20 69 3d 20 30 3b | for (v|ar i= 0;| |00003930| 20 69 20 3c 20 6d 65 6e | 75 69 74 65 6d 73 2e 6c | i < men|uitems.l| |00003940| 65 6e 67 74 68 3b 20 69 | 2b 2b 29 20 7b 0a 20 20 |ength; i|++) {. | |00003950| 20 20 20 20 20 20 73 65 | 74 42 6f 6f 6c 65 61 6e | se|tBoolean| |00003960| 41 74 74 72 69 62 75 74 | 65 28 6d 65 6e 75 69 74 |Attribut|e(menuit| |00003970| 65 6d 73 5b 69 5d 2c 20 | 22 64 69 73 61 62 6c 65 |ems[i], |"disable| |00003980| 64 22 2c 20 21 65 6e 61 | 62 6c 65 64 29 3b 0a 20 |d", !ena|bled);. | |00003990| 20 20 20 20 20 20 20 70 | 6f 70 75 70 2e 61 70 70 | p|opup.app| |000039a0| 65 6e 64 43 68 69 6c 64 | 28 6d 65 6e 75 69 74 65 |endChild|(menuite| |000039b0| 6d 73 5b 69 5d 2e 63 6c | 6f 6e 65 4e 6f 64 65 28 |ms[i].cl|oneNode(| |000039c0| 74 72 75 65 29 29 3b 0a | 20 20 20 20 7d 0a 20 20 |true));.| }. | |000039d0| 20 20 72 65 74 75 72 6e | 20 74 72 75 65 3b 0a 7d | return| true;.}| |000039e0| 0a 0a 0a 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |...agend|aListbox| |000039f0| 2e 72 65 66 72 65 73 68 | 43 61 6c 65 6e 64 61 72 |.refresh|Calendar| |00003a00| 51 75 65 72 79 20 3d 0a | 66 75 6e 63 74 69 6f 6e |Query =.|function| |00003a10| 20 72 65 66 72 65 73 68 | 43 61 6c 65 6e 64 61 72 | refresh|Calendar| |00003a20| 51 75 65 72 79 28 61 53 | 74 61 72 74 2c 20 61 45 |Query(aS|tart, aE| |00003a30| 6e 64 29 20 7b 0a 20 20 | 20 20 76 61 72 20 70 65 |nd) {. | var pe| |00003a40| 6e 64 69 6e 67 52 65 66 | 72 65 73 68 20 3d 20 74 |ndingRef|resh = t| |00003a50| 68 69 73 2e 70 65 6e 64 | 69 6e 67 52 65 66 72 65 |his.pend|ingRefre| |00003a60| 73 68 3b 0a 20 20 20 20 | 69 66 20 28 70 65 6e 64 |sh;. |if (pend| |00003a70| 69 6e 67 52 65 66 72 65 | 73 68 29 20 7b 0a 20 20 |ingRefre|sh) {. | |00003a80| 20 20 20 20 20 20 69 66 | 20 28 70 65 6e 64 69 6e | if| (pendin| |00003a90| 67 52 65 66 72 65 73 68 | 20 69 6e 73 74 61 6e 63 |gRefresh| instanc| |00003aa0| 65 6f 66 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 69 |eof Comp|onents.i| |00003ab0| 6e 74 65 72 66 61 63 65 | 73 2e 63 61 6c 49 4f 70 |nterface|s.calIOp| |00003ac0| 65 72 61 74 69 6f 6e 29 | 20 7b 0a 20 20 20 20 20 |eration)| {. | |00003ad0| 20 20 20 20 20 20 20 74 | 68 69 73 2e 70 65 6e 64 | t|his.pend| |00003ae0| 69 6e 67 52 65 66 72 65 | 73 68 20 3d 20 6e 75 6c |ingRefre|sh = nul| |00003af0| 6c 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 70 |l;. | p| |00003b00| 65 6e 64 69 6e 67 52 65 | 66 72 65 73 68 2e 63 61 |endingRe|fresh.ca| |00003b10| 6e 63 65 6c 28 6e 75 6c | 6c 29 3b 0a 20 20 20 20 |ncel(nul|l);. | |00003b20| 20 20 20 20 7d 20 65 6c | 73 65 20 7b 0a 20 20 20 | } el|se {. | |00003b30| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 3b | | return;| |00003b40| 0a 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 7d |. | }. }| |00003b50| 0a 20 20 20 20 69 66 20 | 28 28 21 61 53 74 61 72 |. if |((!aStar| |00003b60| 74 29 20 26 26 20 28 21 | 61 45 6e 64 29 29 20 7b |t) && (!|aEnd)) {| |00003b70| 0a 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 72 65 |. | this.re| |00003b80| 6d 6f 76 65 4c 69 73 74 | 49 74 65 6d 73 28 29 3b |moveList|Items();| |00003b90| 0a 20 20 20 20 7d 0a 20 | 20 20 20 69 66 20 28 21 |. }. | if (!| |00003ba0| 61 53 74 61 72 74 29 20 | 7b 0a 20 20 20 20 20 20 |aStart) |{. | |00003bb0| 20 20 61 53 74 61 72 74 | 20 3d 20 74 68 69 73 2e | aStart| = this.| |00003bc0| 67 65 74 53 74 61 72 74 | 28 29 3b 0a 20 20 20 20 |getStart|();. | |00003bd0| 7d 0a 20 20 20 20 69 66 | 20 28 21 61 45 6e 64 29 |}. if| (!aEnd)| |00003be0| 20 7b 0a 20 20 20 20 20 | 20 20 20 61 45 6e 64 20 | {. | aEnd | |00003bf0| 3d 20 74 68 69 73 2e 67 | 65 74 45 6e 64 28 29 3b |= this.g|etEnd();| |00003c00| 0a 20 20 20 20 7d 0a 20 | 20 20 20 69 66 20 28 61 |. }. | if (a| |00003c10| 53 74 61 72 74 20 26 26 | 20 61 45 6e 64 29 20 7b |Start &&| aEnd) {| |00003c20| 0a 20 20 20 20 20 20 20 | 20 76 61 72 20 66 69 6c |. | var fil| |00003c30| 74 65 72 20 3d 20 74 68 | 69 73 2e 63 61 6c 65 6e |ter = th|is.calen| |00003c40| 64 61 72 2e 49 54 45 4d | 5f 46 49 4c 54 45 52 5f |dar.ITEM|_FILTER_| |00003c50| 43 4c 41 53 53 5f 4f 43 | 43 55 52 52 45 4e 43 45 |CLASS_OC|CURRENCE| |00003c60| 53 20 7c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |S |. | | |00003c70| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 63 61 | | this.ca| |00003c80| 6c 65 6e 64 61 72 2e 49 | 54 45 4d 5f 46 49 4c 54 |lendar.I|TEM_FILT| |00003c90| 45 52 5f 54 59 50 45 5f | 45 56 45 4e 54 3b 0a 20 |ER_TYPE_|EVENT;. | |00003ca0| 20 20 20 20 20 20 20 74 | 68 69 73 2e 70 65 6e 64 | t|his.pend| |00003cb0| 69 6e 67 52 65 66 72 65 | 73 68 20 3d 20 74 72 75 |ingRefre|sh = tru| |00003cc0| 65 3b 0a 20 20 20 20 20 | 20 20 20 70 65 6e 64 69 |e;. | pendi| |00003cd0| 6e 67 52 65 66 72 65 73 | 68 20 3d 20 74 68 69 73 |ngRefres|h = this| |00003ce0| 2e 63 61 6c 65 6e 64 61 | 72 2e 67 65 74 49 74 65 |.calenda|r.getIte| |00003cf0| 6d 73 28 66 69 6c 74 65 | 72 2c 20 30 2c 20 61 53 |ms(filte|r, 0, aS| |00003d00| 74 61 72 74 2c 20 61 45 | 6e 64 2c 0a 20 20 20 20 |tart, aE|nd,. | |00003d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00003d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 | | this| |00003d40| 2e 63 61 6c 65 6e 64 61 | 72 4f 70 4c 69 73 74 65 |.calenda|rOpListe| |00003d50| 6e 65 72 29 3b 0a 20 20 | 20 20 20 20 20 20 69 66 |ner);. | if| |00003d60| 20 28 70 65 6e 64 69 6e | 67 52 65 66 72 65 73 68 | (pendin|gRefresh| |00003d70| 20 26 26 20 70 65 6e 64 | 69 6e 67 52 65 66 72 65 | && pend|ingRefre| |00003d80| 73 68 2e 69 73 50 65 6e | 64 69 6e 67 29 20 7b 20 |sh.isPen|ding) { | |00003d90| 2f 2f 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 63 |// suppo|rt for c| |00003da0| 61 6c 49 4f 70 65 72 61 | 74 69 6f 6e 0a 20 20 20 |alIOpera|tion. | |00003db0| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 70 65 | | this.pe| |00003dc0| 6e 64 69 6e 67 52 65 66 | 72 65 73 68 20 3d 20 70 |ndingRef|resh = p| |00003dd0| 65 6e 64 69 6e 67 52 65 | 66 72 65 73 68 3b 0a 20 |endingRe|fresh;. | |00003de0| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 7d 0a 7d | }|. }.}| |00003df0| 3b 0a 0a 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |;..agend|aListbox| |00003e00| 2e 73 65 74 75 70 43 61 | 6c 65 6e 64 61 72 20 3d |.setupCa|lendar =| |00003e10| 0a 66 75 6e 63 74 69 6f | 6e 20 73 65 74 75 70 43 |.functio|n setupC| |00003e20| 61 6c 65 6e 64 61 72 28 | 29 20 7b 0a 20 20 20 20 |alendar(|) {. | |00003e30| 74 68 69 73 2e 69 6e 69 | 74 28 29 3b 0a 20 20 20 |this.ini|t();. | |00003e40| 20 69 66 20 28 74 68 69 | 73 2e 63 61 6c 65 6e 64 | if (thi|s.calend| |00003e50| 61 72 20 3d 3d 20 6e 75 | 6c 6c 29 20 7b 0a 20 20 |ar == nu|ll) {. | |00003e60| 20 20 20 20 20 20 74 68 | 69 73 2e 63 61 6c 65 6e | th|is.calen| |00003e70| 64 61 72 20 3d 20 67 65 | 74 43 6f 6d 70 6f 73 69 |dar = ge|tComposi| |00003e80| 74 65 43 61 6c 65 6e 64 | 61 72 28 29 3b 0a 20 20 |teCalend|ar();. | |00003e90| 20 20 7d 0a 20 20 20 20 | 69 66 20 28 74 68 69 73 | }. |if (this| |00003ea0| 2e 63 61 6c 65 6e 64 61 | 72 29 20 7b 0a 20 20 20 |.calenda|r) {. | |00003eb0| 20 20 20 20 20 74 68 69 | 73 2e 63 61 6c 65 6e 64 | thi|s.calend| |00003ec0| 61 72 2e 72 65 6d 6f 76 | 65 4f 62 73 65 72 76 65 |ar.remov|eObserve| |00003ed0| 72 28 74 68 69 73 2e 63 | 61 6c 65 6e 64 61 72 4f |r(this.c|alendarO| |00003ee0| 62 73 65 72 76 65 72 29 | 3b 0a 20 20 20 20 7d 0a |bserver)|;. }.| |00003ef0| 20 20 20 20 74 68 69 73 | 2e 63 61 6c 65 6e 64 61 | this|.calenda| |00003f00| 72 2e 61 64 64 4f 62 73 | 65 72 76 65 72 28 74 68 |r.addObs|erver(th| |00003f10| 69 73 2e 63 61 6c 65 6e | 64 61 72 4f 62 73 65 72 |is.calen|darObser| |00003f20| 76 65 72 29 3b 0a 20 20 | 20 20 69 66 20 28 74 68 |ver);. | if (th| |00003f30| 69 73 2e 6d 4c 69 73 74 | 65 6e 65 72 29 7b 0a 20 |is.mList|ener){. | |00003f40| 20 20 20 20 20 20 20 74 | 68 69 73 2e 6d 4c 69 73 | t|his.mLis| |00003f50| 74 65 6e 65 72 2e 75 70 | 64 61 74 65 50 65 72 69 |tener.up|datePeri| |00003f60| 6f 64 28 29 3b 0a 20 20 | 20 20 7d 0a 7d 3b 0a 0a |od();. | }.};..| |00003f70| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 72 65 |agendaLi|stbox.re| |00003f80| 66 72 65 73 68 50 65 72 | 69 6f 64 44 61 74 65 73 |freshPer|iodDates| |00003f90| 20 3d 0a 66 75 6e 63 74 | 69 6f 6e 20 72 65 66 72 | =.funct|ion refr| |00003fa0| 65 73 68 50 65 72 69 6f | 64 44 61 74 65 73 28 6e |eshPerio|dDates(n| |00003fb0| 65 77 44 61 74 65 29 20 | 7b 0a 20 20 20 20 20 74 |ewDate) |{. t| |00003fc0| 68 69 73 2e 6b 44 65 66 | 61 75 6c 74 54 69 6d 65 |his.kDef|aultTime| |00003fd0| 7a 6f 6e 65 20 3d 20 63 | 61 6c 65 6e 64 61 72 44 |zone = c|alendarD| |00003fe0| 65 66 61 75 6c 74 54 69 | 6d 65 7a 6f 6e 65 28 29 |efaultTi|mezone()| |00003ff0| 3b 0a 20 20 20 20 2f 2f | 20 54 6f 64 61 79 3a 20 |;. //| Today: | |00004000| 6e 6f 77 20 75 6e 74 69 | 6c 20 6d 69 64 6e 69 67 |now unti|l midnig| |00004010| 68 74 20 6f 66 20 74 6f | 6e 69 67 68 74 0a 20 20 |ht of to|night. | |00004020| 20 20 76 61 72 20 6f 6c | 64 73 68 6f 77 73 74 6f | var ol|dshowsto| |00004030| 64 61 79 20 3d 20 74 68 | 69 73 2e 73 68 6f 77 73 |day = th|is.shows| |00004040| 74 6f 64 61 79 3b 0a 20 | 20 20 20 74 68 69 73 2e |today;. | this.| |00004050| 73 68 6f 77 73 74 6f 64 | 61 79 20 3d 20 74 68 69 |showstod|ay = thi| |00004060| 73 2e 73 68 6f 77 73 54 | 6f 64 61 79 28 6e 65 77 |s.showsT|oday(new| |00004070| 44 61 74 65 29 3b 0a 20 | 20 20 20 69 66 20 28 28 |Date);. | if ((| |00004080| 74 68 69 73 2e 73 68 6f | 77 73 74 6f 64 61 79 29 |this.sho|wstoday)| |00004090| 20 26 26 20 28 21 6f 6c | 64 73 68 6f 77 73 74 6f | && (!ol|dshowsto| |000040a0| 64 61 79 29 29 20 20 7b | 0a 20 20 20 20 20 20 20 |day)) {|. | |000040b0| 20 74 68 69 73 2e 61 64 | 64 50 65 72 69 6f 64 4c | this.ad|dPeriodL| |000040c0| 69 73 74 49 74 65 6d 28 | 74 68 69 73 2e 74 6f 6d |istItem(|this.tom| |000040d0| 6f 72 72 6f 77 2c 20 22 | 74 6f 6d 6f 72 72 6f 77 |orrow, "|tomorrow| |000040e0| 2d 68 65 61 64 65 72 22 | 29 3b 0a 20 20 20 20 20 |-header"|);. | |000040f0| 20 20 20 74 68 69 73 2e | 61 64 64 50 65 72 69 6f | this.|addPerio| |00004100| 64 4c 69 73 74 49 74 65 | 6d 28 74 68 69 73 2e 73 |dListIte|m(this.s| |00004110| 6f 6f 6e 2c 20 22 6e 65 | 78 74 77 65 65 6b 2d 68 |oon, "ne|xtweek-h| |00004120| 65 61 64 65 72 22 29 3b | 0a 20 20 20 20 7d 20 65 |eader");|. } e| |00004130| 6c 73 65 20 69 66 20 28 | 21 74 68 69 73 2e 73 68 |lse if (|!this.sh| |00004140| 6f 77 73 74 6f 64 61 79 | 29 20 7b 0a 20 20 20 20 |owstoday|) {. | |00004150| 20 20 20 20 74 68 69 73 | 2e 72 65 6d 6f 76 65 50 | this|.removeP| |00004160| 65 72 69 6f 64 4c 69 73 | 74 49 74 65 6d 28 74 68 |eriodLis|tItem(th| |00004170| 69 73 2e 74 6f 6d 6f 72 | 72 6f 77 29 3b 0a 20 20 |is.tomor|row);. | |00004180| 20 20 20 20 20 20 74 68 | 69 73 2e 72 65 6d 6f 76 | th|is.remov| |00004190| 65 50 65 72 69 6f 64 4c | 69 73 74 49 74 65 6d 28 |ePeriodL|istItem(| |000041a0| 74 68 69 73 2e 73 6f 6f | 6e 29 3b 0a 20 20 20 20 |this.soo|n);. | |000041b0| 7d 0a 20 20 20 20 6e 65 | 77 44 61 74 65 2e 69 73 |}. ne|wDate.is| |000041c0| 44 61 74 65 20 3d 20 74 | 72 75 65 3b 0a 20 20 20 |Date = t|rue;. | |000041d0| 20 66 6f 72 20 28 76 61 | 72 20 69 20 3d 20 30 3b | for (va|r i = 0;| |000041e0| 20 69 20 3c 20 74 68 69 | 73 2e 70 65 72 69 6f 64 | i < thi|s.period| |000041f0| 73 2e 6c 65 6e 67 74 68 | 3b 20 69 2b 2b 29 20 7b |s.length|; i++) {| |00004200| 0a 20 20 20 20 20 20 20 | 20 76 61 72 20 63 75 72 |. | var cur| |00004210| 50 65 72 69 6f 64 20 3d | 20 74 68 69 73 2e 70 65 |Period =| this.pe| |00004220| 72 69 6f 64 73 5b 69 5d | 3b 0a 20 20 20 20 20 20 |riods[i]|;. | |00004230| 20 20 6e 65 77 44 61 74 | 65 2e 68 6f 75 72 20 3d | newDat|e.hour =| |00004240| 20 6e 65 77 44 61 74 65 | 2e 6d 69 6e 75 74 65 20 | newDate|.minute | |00004250| 3d 20 6e 65 77 44 61 74 | 65 2e 73 65 63 6f 6e 64 |= newDat|e.second| |00004260| 20 3d 20 30 3b 0a 20 20 | 20 20 20 20 20 20 69 66 | = 0;. | if| |00004270| 20 28 28 69 20 3d 3d 20 | 30 29 20 20 26 26 20 28 | ((i == |0) && (| |00004280| 74 68 69 73 2e 73 68 6f | 77 73 74 6f 64 61 79 29 |this.sho|wstoday)| |00004290| 29 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |){. | c| |000042a0| 75 72 50 65 72 69 6f 64 | 2e 73 74 61 72 74 20 3d |urPeriod|.start =| |000042b0| 20 6e 6f 77 28 29 3b 0a | 20 20 20 20 20 20 20 20 | now();.| | |000042c0| 7d 20 65 6c 73 65 20 7b | 0a 20 20 20 20 20 20 20 |} else {|. | |000042d0| 20 20 20 20 20 63 75 72 | 50 65 72 69 6f 64 2e 73 | cur|Period.s| |000042e0| 74 61 72 74 20 3d 20 6e | 65 77 44 61 74 65 2e 63 |tart = n|ewDate.c| |000042f0| 6c 6f 6e 65 28 29 3b 0a | 20 20 20 20 20 20 20 20 |lone();.| | |00004300| 7d 0a 20 20 20 20 20 20 | 20 20 6e 65 77 44 61 74 |}. | newDat| |00004310| 65 2e 64 61 79 20 2b 3d | 20 63 75 72 50 65 72 69 |e.day +=| curPeri| |00004320| 6f 64 2e 64 75 72 61 74 | 69 6f 6e 3b 0a 20 20 20 |od.durat|ion;. | |00004330| 20 20 20 20 20 63 75 72 | 50 65 72 69 6f 64 2e 65 | cur|Period.e| |00004340| 6e 64 20 3d 20 6e 65 77 | 44 61 74 65 2e 63 6c 6f |nd = new|Date.clo| |00004350| 6e 65 28 29 3b 0a 20 20 | 20 20 20 20 20 20 63 75 |ne();. | cu| |00004360| 72 50 65 72 69 6f 64 2e | 6c 69 73 74 49 74 65 6d |rPeriod.|listItem| |00004370| 2e 73 65 74 49 74 65 6d | 28 63 75 72 50 65 72 69 |.setItem|(curPeri| |00004380| 6f 64 2c 20 74 68 69 73 | 2e 73 68 6f 77 73 74 6f |od, this|.showsto| |00004390| 64 61 79 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |day);. | }. | |000043a0| 74 68 69 73 2e 72 65 66 | 72 65 73 68 43 61 6c 65 |this.ref|reshCale| |000043b0| 6e 64 61 72 51 75 65 72 | 79 28 29 3b 0a 7d 3b 0a |ndarQuer|y();.};.| |000043c0| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 61 |.agendaL|istbox.a| |000043d0| 64 64 4c 69 73 74 65 6e | 65 72 20 3d 0a 66 75 6e |ddListen|er =.fun| |000043e0| 63 74 69 6f 6e 20 61 64 | 64 4c 69 73 74 65 6e 65 |ction ad|dListene| |000043f0| 72 28 61 4c 69 73 74 65 | 6e 65 72 29 20 7b 0a 20 |r(aListe|ner) {. | |00004400| 20 20 20 74 68 69 73 2e | 6d 4c 69 73 74 65 6e 65 | this.|mListene| |00004410| 72 20 3d 20 61 4c 69 73 | 74 65 6e 65 72 3b 0a 7d |r = aLis|tener;.}| |00004420| 0a 0a 61 67 65 6e 64 61 | 4c 69 73 74 62 6f 78 2e |..agenda|Listbox.| |00004430| 73 68 6f 77 73 54 6f 64 | 61 79 20 3d 0a 66 75 6e |showsTod|ay =.fun| |00004440| 63 74 69 6f 6e 20 73 68 | 6f 77 73 54 6f 64 61 79 |ction sh|owsToday| |00004450| 28 61 53 74 61 72 74 44 | 61 74 65 29 20 7b 0a 20 |(aStartD|ate) {. | |00004460| 20 20 20 76 61 72 20 6c | 73 74 61 72 74 20 3d 20 | var l|start = | |00004470| 61 53 74 61 72 74 44 61 | 74 65 3b 0a 20 20 20 20 |aStartDa|te;. | |00004480| 69 66 20 28 21 6c 73 74 | 61 72 74 29 20 7b 0a 20 |if (!lst|art) {. | |00004490| 20 20 20 20 20 20 20 6c | 73 74 61 72 74 20 3d 20 | l|start = | |000044a0| 74 68 69 73 2e 74 6f 64 | 61 79 2e 73 74 61 72 74 |this.tod|ay.start| |000044b0| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 76 61 72 20 |;. }.| var | |000044c0| 6c 73 68 6f 77 73 54 6f | 64 61 79 20 3d 20 28 73 |lshowsTo|day = (s| |000044d0| 61 6d 65 44 61 79 28 6e | 6f 77 28 29 2c 20 6c 73 |ameDay(n|ow(), ls| |000044e0| 74 61 72 74 29 29 3b 0a | 20 20 20 20 69 66 20 28 |tart));.| if (| |000044f0| 6c 73 68 6f 77 73 54 6f | 64 61 79 29 20 7b 0a 20 |lshowsTo|day) {. | |00004500| 20 20 20 20 20 20 20 74 | 68 69 73 2e 70 65 72 69 | t|his.peri| |00004510| 6f 64 73 20 3d 20 5b 74 | 68 69 73 2e 74 6f 64 61 |ods = [t|his.toda| |00004520| 79 2c 20 74 68 69 73 2e | 74 6f 6d 6f 72 72 6f 77 |y, this.|tomorrow| |00004530| 2c 20 74 68 69 73 2e 73 | 6f 6f 6e 5d 3b 0a 20 20 |, this.s|oon];. | |00004540| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 20 20 20 20 20 | } else| {. | |00004550| 20 20 20 74 68 69 73 2e | 70 65 72 69 6f 64 73 20 | this.|periods | |00004560| 3d 20 5b 74 68 69 73 2e | 74 6f 64 61 79 5d 3b 0a |= [this.|today];.| |00004570| 20 20 20 20 7d 0a 20 20 | 20 20 72 65 74 75 72 6e | }. | return| |00004580| 20 6c 73 68 6f 77 73 54 | 6f 64 61 79 3b 0a 7d 3b | lshowsT|oday;.};| |00004590| 0a 0a 61 67 65 6e 64 61 | 4c 69 73 74 62 6f 78 2e |..agenda|Listbox.| |000045a0| 6d 6f 76 65 53 65 6c 65 | 63 74 69 6f 6e 20 3d 0a |moveSele|ction =.| |000045b0| 66 75 6e 63 74 69 6f 6e | 20 6d 6f 76 65 53 65 6c |function| moveSel| |000045c0| 65 63 74 69 6f 6e 28 29 | 20 7b 0a 20 20 20 20 76 |ection()| {. v| |000045d0| 61 72 20 73 65 6c 69 6e | 64 65 78 20 3d 20 74 68 |ar selin|dex = th| |000045e0| 69 73 2e 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |is.agend|aListbox| |000045f0| 43 6f 6e 74 72 6f 6c 2e | 73 65 6c 65 63 74 65 64 |Control.|selected| |00004600| 49 6e 64 65 78 3b 0a 20 | 20 20 20 69 66 20 28 20 |Index;. | if ( | |00004610| 21 74 68 69 73 2e 69 73 | 45 76 65 6e 74 4c 69 73 |!this.is|EventLis| |00004620| 74 49 74 65 6d 28 74 68 | 69 73 2e 61 67 65 6e 64 |tItem(th|is.agend| |00004630| 61 4c 69 73 74 62 6f 78 | 43 6f 6e 74 72 6f 6c 2e |aListbox|Control.| |00004640| 73 65 6c 65 63 74 65 64 | 49 74 65 6d 2e 6e 65 78 |selected|Item.nex| |00004650| 74 53 69 62 6c 69 6e 67 | 29 29 20 7b 0a 20 20 20 |tSibling|)) {. | |00004660| 20 20 20 20 20 74 68 69 | 73 2e 61 67 65 6e 64 61 | thi|s.agenda| |00004670| 4c 69 73 74 62 6f 78 43 | 6f 6e 74 72 6f 6c 2e 67 |ListboxC|ontrol.g| |00004680| 6f 55 70 28 29 3b 0a 20 | 20 20 20 7d 20 65 6c 73 |oUp();. | } els| |00004690| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 74 68 69 73 |e {. | this| |000046a0| 2e 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 43 6f |.agendaL|istboxCo| |000046b0| 6e 74 72 6f 6c 2e 67 6f | 44 6f 77 6e 28 29 3b 0a |ntrol.go|Down();.| |000046c0| 20 20 20 20 7d 0a 7d 0a | 0a 61 67 65 6e 64 61 4c | }.}.|.agendaL| |000046d0| 69 73 74 62 6f 78 2e 69 | 73 45 76 65 6e 74 4c 69 |istbox.i|sEventLi| |000046e0| 73 74 49 74 65 6d 20 3d | 0a 66 75 6e 63 74 69 6f |stItem =|.functio| |000046f0| 6e 20 69 73 45 76 65 6e | 74 4c 69 73 74 49 74 65 |n isEven|tListIte| |00004700| 6d 28 61 4c 69 73 74 49 | 74 65 6d 29 20 7b 0a 20 |m(aListI|tem) {. | |00004710| 20 20 20 76 61 72 20 69 | 73 45 76 65 6e 74 4c 69 | var i|sEventLi| |00004720| 73 74 49 74 65 6d 20 3d | 20 28 61 4c 69 73 74 49 |stItem =| (aListI| |00004730| 74 65 6d 20 21 3d 20 6e | 75 6c 6c 29 3b 0a 20 20 |tem != n|ull);. | |00004740| 20 20 69 66 20 28 69 73 | 45 76 65 6e 74 4c 69 73 | if (is|EventLis| |00004750| 74 49 74 65 6d 29 20 7b | 0a 20 20 20 20 20 20 20 |tItem) {|. | |00004760| 20 76 61 72 20 6c 6f 63 | 61 6c 4e 61 6d 65 20 3d | var loc|alName =| |00004770| 20 61 4c 69 73 74 49 74 | 65 6d 2e 6c 6f 63 61 6c | aListIt|em.local| |00004780| 4e 61 6d 65 3b 0a 20 20 | 20 20 20 20 20 20 69 73 |Name;. | is| |00004790| 45 76 65 6e 74 4c 69 73 | 74 49 74 65 6d 20 3d 20 |EventLis|tItem = | |000047a0| 28 28 6c 6f 63 61 6c 4e | 61 6d 65 20 3d 3d 20 20 |((localN|ame == | |000047b0| 22 61 67 65 6e 64 61 2d | 72 69 63 68 6c 69 73 74 |"agenda-|richlist| |000047c0| 2d 69 74 65 6d 22 29 20 | 7c 7c 0a 20 20 20 20 20 |-item") |||. | |000047d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000047e0| 20 20 20 20 20 28 6c 6f | 63 61 6c 4e 61 6d 65 20 | (lo|calName | |000047f0| 3d 3d 20 20 22 61 67 65 | 6e 64 61 2d 61 6c 6c 64 |== "age|nda-alld| |00004800| 61 79 2d 72 69 63 68 6c | 69 73 74 2d 69 74 65 6d |ay-richl|ist-item| |00004810| 22 29 29 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 72 |"));. | }. r| |00004820| 65 74 75 72 6e 20 69 73 | 45 76 65 6e 74 4c 69 73 |eturn is|EventLis| |00004830| 74 49 74 65 6d 3b 0a 7d | 0a 0a 61 67 65 6e 64 61 |tItem;.}|..agenda| |00004840| 4c 69 73 74 62 6f 78 2e | 72 65 6d 6f 76 65 4c 69 |Listbox.|removeLi| |00004850| 73 74 49 74 65 6d 73 20 | 3d 0a 66 75 6e 63 74 69 |stItems |=.functi| |00004860| 6f 6e 20 72 65 6d 6f 76 | 65 4c 69 73 74 49 74 65 |on remov|eListIte| |00004870| 6d 73 28 29 20 7b 0a 20 | 20 20 20 76 61 72 20 6c |ms() {. | var l| |00004880| 69 73 74 49 74 65 6d 20 | 3d 20 74 68 69 73 2e 61 |istItem |= this.a| |00004890| 67 65 6e 64 61 4c 69 73 | 74 62 6f 78 43 6f 6e 74 |gendaLis|tboxCont| |000048a0| 72 6f 6c 2e 6c 61 73 74 | 43 68 69 6c 64 3b 0a 20 |rol.last|Child;. | |000048b0| 20 20 20 69 66 20 28 6c | 69 73 74 49 74 65 6d 29 | if (l|istItem)| |000048c0| 20 7b 0a 20 20 20 20 20 | 20 20 20 76 61 72 20 6c | {. | var l| |000048d0| 65 61 76 65 6c 6f 6f 70 | 20 3d 20 66 61 6c 73 65 |eaveloop| = false| |000048e0| 3b 0a 20 20 20 20 20 20 | 20 20 64 6f 20 7b 0a 20 |;. | do {. | |000048f0| 20 20 20 20 20 20 20 20 | 20 20 20 76 61 72 20 6e | | var n| |00004900| 65 77 6c 69 73 74 49 74 | 65 6d 20 3d 20 6e 75 6c |ewlistIt|em = nul| |00004910| 6c 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |l;. | i| |00004920| 66 20 28 6c 69 73 74 49 | 74 65 6d 29 20 7b 0a 20 |f (listI|tem) {. | |00004930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6e | | n| |00004940| 65 77 6c 69 73 74 49 74 | 65 6d 20 3d 20 6c 69 73 |ewlistIt|em = lis| |00004950| 74 49 74 65 6d 2e 70 72 | 65 76 69 6f 75 73 53 69 |tItem.pr|eviousSi| |00004960| 62 6c 69 6e 67 3b 0a 20 | 20 20 20 20 20 20 20 20 |bling;. | | |00004970| 20 20 20 7d 20 65 6c 73 | 65 20 7b 0a 20 20 20 20 | } els|e {. | |00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 6c 65 61 76 | | leav| |00004990| 65 6c 6f 6f 70 20 3d 20 | 74 72 75 65 3b 0a 20 20 |eloop = |true;. | |000049a0| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. | |000049b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 74 68 69 73 | |if (this| |000049c0| 2e 69 73 45 76 65 6e 74 | 4c 69 73 74 49 74 65 6d |.isEvent|ListItem| |000049d0| 28 6c 69 73 74 49 74 65 | 6d 29 29 20 7b 0a 20 20 |(listIte|m)) {. | |000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if| |000049f0| 20 28 21 6c 69 73 74 49 | 74 65 6d 2e 69 73 53 61 | (!listI|tem.isSa| |00004a00| 6d 65 4e 6f 64 65 28 74 | 68 69 73 2e 61 67 65 6e |meNode(t|his.agen| |00004a10| 64 61 4c 69 73 74 62 6f | 78 43 6f 6e 74 72 6f 6c |daListbo|xControl| |00004a20| 2e 66 69 72 73 74 43 68 | 69 6c 64 29 29 20 7b 0a |.firstCh|ild)) {.| |00004a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004a40| 20 20 20 20 74 68 69 73 | 2e 61 67 65 6e 64 61 4c | this|.agendaL| |00004a50| 69 73 74 62 6f 78 43 6f | 6e 74 72 6f 6c 2e 72 65 |istboxCo|ntrol.re| |00004a60| 6d 6f 76 65 43 68 69 6c | 64 28 6c 69 73 74 49 74 |moveChil|d(listIt| |00004a70| 65 6d 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |em);. | | |00004a80| 20 20 20 20 20 7d 20 65 | 6c 73 65 20 7b 0a 20 20 | } e|lse {. | |00004a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004aa0| 20 20 6c 65 61 76 65 6c | 6f 6f 70 20 3d 20 74 72 | leavel|oop = tr| |00004ab0| 75 65 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ue;. | | |00004ac0| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | | |00004ad0| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | | |00004ae0| 6c 69 73 74 49 74 65 6d | 20 3d 20 6e 65 77 6c 69 |listItem| = newli| |00004af0| 73 74 49 74 65 6d 3b 0a | 20 20 20 20 20 20 20 20 |stItem;.| | |00004b00| 7d 20 77 68 69 6c 65 20 | 28 21 6c 65 61 76 65 6c |} while |(!leavel| |00004b10| 6f 6f 70 29 0a 20 20 20 | 20 7d 0a 7d 0a 0a 61 67 |oop). | }.}..ag| |00004b20| 65 6e 64 61 4c 69 73 74 | 62 6f 78 2e 67 65 74 4c |endaList|box.getL| |00004b30| 69 73 74 49 74 65 6d 42 | 79 48 61 73 68 49 64 20 |istItemB|yHashId | |00004b40| 3d 0a 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 4c 69 |=.functi|on getLi| |00004b50| 73 74 49 74 65 6d 42 79 | 48 61 73 68 49 64 28 61 |stItemBy|HashId(a| |00004b60| 68 61 73 68 49 64 29 20 | 7b 0a 20 20 20 20 76 61 |hashId) |{. va| |00004b70| 72 20 6c 69 73 74 49 74 | 65 6d 20 3d 20 74 68 69 |r listIt|em = thi| |00004b80| 73 2e 61 67 65 6e 64 61 | 4c 69 73 74 62 6f 78 43 |s.agenda|ListboxC| |00004b90| 6f 6e 74 72 6f 6c 2e 66 | 69 72 73 74 43 68 69 6c |ontrol.f|irstChil| |00004ba0| 64 3b 0a 20 20 20 20 76 | 61 72 20 6c 65 61 76 65 |d;. v|ar leave| |00004bb0| 6c 6f 6f 70 20 3d 20 66 | 61 6c 73 65 3b 0a 20 20 |loop = f|alse;. | |00004bc0| 20 20 64 6f 20 7b 0a 20 | 20 20 20 20 20 20 20 69 | do {. | i| |00004bd0| 66 20 28 74 68 69 73 2e | 69 73 45 76 65 6e 74 4c |f (this.|isEventL| |00004be0| 69 73 74 49 74 65 6d 28 | 6c 69 73 74 49 74 65 6d |istItem(|listItem| |00004bf0| 29 29 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |)) {. | | |00004c00| 20 69 66 20 28 6c 69 73 | 74 49 74 65 6d 2e 67 65 | if (lis|tItem.ge| |00004c10| 74 49 74 65 6d 28 29 2e | 68 61 73 68 49 64 20 3d |tItem().|hashId =| |00004c20| 3d 20 61 68 61 73 68 49 | 64 29 20 7b 0a 20 20 20 |= ahashI|d) {. | |00004c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 | | ret| |00004c40| 75 72 6e 20 6c 69 73 74 | 49 74 65 6d 3b 0a 20 20 |urn list|Item;. | |00004c50| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. | |00004c60| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 6c 69 | }. | li| |00004c70| 73 74 49 74 65 6d 20 3d | 20 6c 69 73 74 49 74 65 |stItem =| listIte| |00004c80| 6d 2e 6e 65 78 74 53 69 | 62 6c 69 6e 67 3b 0a 20 |m.nextSi|bling;. | |00004c90| 20 20 20 20 20 20 20 6c | 65 61 76 65 6c 6f 6f 70 | l|eaveloop| |00004ca0| 20 3d 20 28 6c 69 73 74 | 49 74 65 6d 20 3d 3d 20 | = (list|Item == | |00004cb0| 6e 75 6c 6c 29 3b 0a 20 | 20 20 20 7d 20 77 68 69 |null);. | } whi| |00004cc0| 6c 65 20 28 21 6c 65 61 | 76 65 6c 6f 6f 70 29 0a |le (!lea|veloop).| |00004cd0| 20 20 20 20 72 65 74 75 | 72 6e 20 6e 75 6c 6c 3b | retu|rn null;| |00004ce0| 0a 7d 0a 0a 61 67 65 6e | 64 61 4c 69 73 74 62 6f |.}..agen|daListbo| |00004cf0| 78 2e 63 61 6c 65 6e 64 | 61 72 4f 70 4c 69 73 74 |x.calend|arOpList| |00004d00| 65 6e 65 72 20 3d 20 7b | 0a 20 20 20 20 61 67 65 |ener = {|. age| |00004d10| 6e 64 61 4c 69 73 74 62 | 6f 78 20 3a 20 61 67 65 |ndaListb|ox : age| |00004d20| 6e 64 61 4c 69 73 74 62 | 6f 78 0a 7d 3b 0a 0a 61 |ndaListb|ox.};..a| |00004d30| 67 65 6e 64 61 4c 69 73 | 74 62 6f 78 2e 63 61 6c |gendaLis|tbox.cal| |00004d40| 65 6e 64 61 72 4f 70 4c | 69 73 74 65 6e 65 72 2e |endarOpL|istener.| |00004d50| 6f 6e 4f 70 65 72 61 74 | 69 6f 6e 43 6f 6d 70 6c |onOperat|ionCompl| |00004d60| 65 74 65 20 3d 0a 66 75 | 6e 63 74 69 6f 6e 20 6c |ete =.fu|nction l| |00004d70| 69 73 74 65 6e 65 72 5f | 6f 6e 4f 70 65 72 61 74 |istener_|onOperat| |00004d80| 69 6f 6e 43 6f 6d 70 6c | 65 74 65 28 63 61 6c 65 |ionCompl|ete(cale| |00004d90| 6e 64 61 72 2c 20 73 74 | 61 74 75 73 2c 20 6f 70 |ndar, st|atus, op| |00004da0| 74 79 70 65 2c 20 69 64 | 2c 0a 20 20 20 20 20 20 |type, id|,. | |00004db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004dd0| 64 65 74 61 69 6c 29 20 | 7b 0a 20 20 20 20 2f 2f |detail) |{. //| |00004de0| 20 73 69 67 6e 61 6c 20 | 74 68 61 74 20 74 68 65 | signal |that the| |00004df0| 20 63 75 72 72 65 6e 74 | 20 6f 70 65 72 61 74 69 | current| operati| |00004e00| 6f 6e 20 66 69 6e 69 73 | 68 65 64 2e 0a 20 20 20 |on finis|hed.. | |00004e10| 20 74 68 69 73 2e 61 67 | 65 6e 64 61 4c 69 73 74 | this.ag|endaList| |00004e20| 62 6f 78 2e 70 65 6e 64 | 69 6e 67 52 65 66 72 65 |box.pend|ingRefre| |00004e30| 73 68 20 3d 20 6e 75 6c | 6c 3b 0a 20 20 20 20 73 |sh = nul|l;. s| |00004e40| 65 74 43 75 72 72 65 6e | 74 45 76 65 6e 74 28 29 |etCurren|tEvent()| |00004e50| 3b 0a 7d 3b 0a 0a 61 67 | 65 6e 64 61 4c 69 73 74 |;.};..ag|endaList| |00004e60| 62 6f 78 2e 63 61 6c 65 | 6e 64 61 72 4f 70 4c 69 |box.cale|ndarOpLi| |00004e70| 73 74 65 6e 65 72 2e 6f | 6e 47 65 74 52 65 73 75 |stener.o|nGetResu| |00004e80| 6c 74 20 3d 0a 66 75 6e | 63 74 69 6f 6e 20 6c 69 |lt =.fun|ction li| |00004e90| 73 74 65 6e 65 72 5f 6f | 6e 47 65 74 52 65 73 75 |stener_o|nGetResu| |00004ea0| 6c 74 28 63 61 6c 65 6e | 64 61 72 2c 20 73 74 61 |lt(calen|dar, sta| |00004eb0| 74 75 73 2c 20 69 74 65 | 6d 74 79 70 65 2c 20 64 |tus, ite|mtype, d| |00004ec0| 65 74 61 69 6c 2c 20 63 | 6f 75 6e 74 2c 20 69 74 |etail, c|ount, it| |00004ed0| 65 6d 73 29 20 7b 0a 20 | 20 20 20 69 66 20 28 21 |ems) {. | if (!| |00004ee0| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 69 73 53 75 63 |Componen|ts.isSuc| |00004ef0| 63 65 73 73 43 6f 64 65 | 28 73 74 61 74 75 73 29 |cessCode|(status)| |00004f00| 29 0a 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |). | return| |00004f10| 3b 0a 20 20 20 20 69 74 | 65 6d 73 2e 66 6f 72 45 |;. it|ems.forE| |00004f20| 61 63 68 28 74 68 69 73 | 2e 61 67 65 6e 64 61 4c |ach(this|.agendaL| |00004f30| 69 73 74 62 6f 78 2e 61 | 64 64 49 74 65 6d 2c 20 |istbox.a|ddItem, | |00004f40| 74 68 69 73 2e 61 67 65 | 6e 64 61 4c 69 73 74 62 |this.age|ndaListb| |00004f50| 6f 78 29 3b 0a 7d 3b 0a | 0a 61 67 65 6e 64 61 4c |ox);.};.|.agendaL| |00004f60| 69 73 74 62 6f 78 2e 63 | 61 6c 65 6e 64 61 72 4f |istbox.c|alendarO| |00004f70| 62 73 65 72 76 65 72 20 | 3d 20 7b 0a 20 20 20 20 |bserver |= {. | |00004f80| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 20 3a 20 |agendaLi|stbox : | |00004f90| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 0a 7d 3b |agendaLi|stbox.};| |00004fa0| 0a 0a 61 67 65 6e 64 61 | 4c 69 73 74 62 6f 78 2e |..agenda|Listbox.| |00004fb0| 63 61 6c 65 6e 64 61 72 | 4f 62 73 65 72 76 65 72 |calendar|Observer| |00004fc0| 2e 51 75 65 72 79 49 6e | 74 65 72 66 61 63 65 20 |.QueryIn|terface | |00004fd0| 3d 0a 66 75 6e 63 74 69 | 6f 6e 20 61 67 65 6e 64 |=.functi|on agend| |00004fe0| 61 5f 51 49 28 61 49 49 | 44 29 20 7b 0a 20 20 20 |a_QI(aII|D) {. | |00004ff0| 20 69 66 20 28 21 61 49 | 49 44 2e 65 71 75 61 6c | if (!aI|ID.equal| |00005000| 73 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |s(Compon|ents.int| |00005010| 65 72 66 61 63 65 73 2e | 63 61 6c 49 4f 62 73 65 |erfaces.|calIObse| |00005020| 72 76 65 72 29 20 26 26 | 0a 20 20 20 20 20 20 20 |rver) &&|. | |00005030| 20 21 61 49 49 44 2e 65 | 71 75 61 6c 73 28 43 6f | !aIID.e|quals(Co| |00005040| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa| |00005050| 63 65 73 2e 63 61 6c 49 | 43 6f 6d 70 6f 73 69 74 |ces.calI|Composit| |00005060| 65 4f 62 73 65 72 76 65 | 72 29 20 26 26 0a 20 20 |eObserve|r) &&. | |00005070| 20 20 20 20 20 20 21 61 | 49 49 44 2e 65 71 75 61 | !a|IID.equa| |00005080| 6c 73 28 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |ls(Compo|nents.in| |00005090| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 53 75 70 70 |terfaces|.nsISupp| |000050a0| 6f 72 74 73 29 29 20 7b | 0a 20 20 20 20 20 20 20 |orts)) {|. | |000050b0| 20 74 68 72 6f 77 20 43 | 6f 6d 70 6f 6e 65 6e 74 | throw C|omponent| |000050c0| 73 2e 72 65 73 75 6c 74 | 73 2e 4e 53 5f 45 52 52 |s.result|s.NS_ERR| |000050d0| 4f 52 5f 4e 4f 5f 49 4e | 54 45 52 46 41 43 45 3b |OR_NO_IN|TERFACE;| |000050e0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 72 65 74 75 72 |. }. | retur| |000050f0| 6e 20 74 68 69 73 3b 0a | 7d 3b 0a 0a 2f 2f 20 63 |n this;.|};..// c| |00005100| 61 6c 49 4f 62 73 65 72 | 76 65 72 3a 0a 61 67 65 |alIObser|ver:.age| |00005110| 6e 64 61 4c 69 73 74 62 | 6f 78 2e 63 61 6c 65 6e |ndaListb|ox.calen| |00005120| 64 61 72 4f 62 73 65 72 | 76 65 72 2e 6f 6e 53 74 |darObser|ver.onSt| |00005130| 61 72 74 42 61 74 63 68 | 20 3d 20 66 75 6e 63 74 |artBatch| = funct| |00005140| 69 6f 6e 20 61 67 65 6e | 64 61 5f 6f 6e 42 61 74 |ion agen|da_onBat| |00005150| 63 68 53 74 61 72 74 28 | 29 20 7b 0a 20 20 20 20 |chStart(|) {. | |00005160| 74 68 69 73 2e 6d 42 61 | 74 63 68 43 6f 75 6e 74 |this.mBa|tchCount| |00005170| 2b 2b 3b 0a 7d 3b 0a 0a | 61 67 65 6e 64 61 4c 69 |++;.};..|agendaLi| |00005180| 73 74 62 6f 78 2e 63 61 | 6c 65 6e 64 61 72 4f 62 |stbox.ca|lendarOb| |00005190| 73 65 72 76 65 72 2e 6f | 6e 45 6e 64 42 61 74 63 |server.o|nEndBatc| |000051a0| 68 20 3d 0a 66 75 6e 63 | 74 69 6f 6e 28 29 20 7b |h =.func|tion() {| |000051b0| 0a 20 20 20 20 74 68 69 | 73 2e 6d 42 61 74 63 68 |. thi|s.mBatch| |000051c0| 43 6f 75 6e 74 2d 2d 3b | 0a 20 20 20 20 69 66 20 |Count--;|. if | |000051d0| 28 74 68 69 73 2e 6d 42 | 61 74 63 68 43 6f 75 6e |(this.mB|atchCoun| |000051e0| 74 20 3d 3d 20 30 29 20 | 7b 0a 20 20 20 20 20 20 |t == 0) |{. | |000051f0| 20 20 2f 2f 20 52 65 62 | 75 69 6c 64 20 65 76 65 | // Reb|uild eve| |00005200| 72 79 74 68 69 6e 67 0a | 20 20 20 20 20 20 20 20 |rything.| | |00005210| 74 68 69 73 2e 61 67 65 | 6e 64 61 4c 69 73 74 62 |this.age|ndaListb| |00005220| 6f 78 2e 72 65 66 72 65 | 73 68 43 61 6c 65 6e 64 |ox.refre|shCalend| |00005230| 61 72 51 75 65 72 79 28 | 29 3b 0a 20 20 20 20 7d |arQuery(|);. }| |00005240| 0a 7d 3b 0a 0a 61 67 65 | 6e 64 61 4c 69 73 74 62 |.};..age|ndaListb| |00005250| 6f 78 2e 63 61 6c 65 6e | 64 61 72 4f 62 73 65 72 |ox.calen|darObser| |00005260| 76 65 72 2e 6f 6e 4c 6f | 61 64 20 3d 20 66 75 6e |ver.onLo|ad = fun| |00005270| 63 74 69 6f 6e 28 29 20 | 7b 0a 20 20 20 20 74 68 |ction() |{. th| |00005280| 69 73 2e 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |is.agend|aListbox| |00005290| 2e 72 65 66 72 65 73 68 | 43 61 6c 65 6e 64 61 72 |.refresh|Calendar| |000052a0| 51 75 65 72 79 28 29 3b | 0a 7d 3b 0a 0a 61 67 65 |Query();|.};..age| |000052b0| 6e 64 61 4c 69 73 74 62 | 6f 78 2e 63 61 6c 65 6e |ndaListb|ox.calen| |000052c0| 64 61 72 4f 62 73 65 72 | 76 65 72 2e 6f 6e 41 64 |darObser|ver.onAd| |000052d0| 64 49 74 65 6d 20 3d 0a | 66 75 6e 63 74 69 6f 6e |dItem =.|function| |000052e0| 20 6f 62 73 65 72 76 65 | 72 5f 6f 6e 41 64 64 49 | observe|r_onAddI| |000052f0| 74 65 6d 28 69 74 65 6d | 29 0a 7b 0a 20 20 69 66 |tem(item|).{. if| |00005300| 20 28 74 68 69 73 2e 6d | 42 61 74 63 68 43 6f 75 | (this.m|BatchCou| |00005310| 6e 74 29 20 7b 0a 20 20 | 20 20 20 20 72 65 74 75 |nt) {. | retu| |00005320| 72 6e 3b 0a 20 20 7d 0a | 20 20 69 66 20 28 21 69 |rn;. }.| if (!i| |00005330| 73 45 76 65 6e 74 28 69 | 74 65 6d 29 29 20 7b 0a |sEvent(i|tem)) {.| |00005340| 20 20 20 20 20 20 72 65 | 74 75 72 6e 3b 0a 20 20 | re|turn;. | |00005350| 7d 0a 2f 2f 20 67 65 74 | 20 61 6c 6c 20 73 75 62 |}.// get| all sub| |00005360| 20 69 74 65 6d 73 20 69 | 66 20 69 74 20 69 73 20 | items i|f it is | |00005370| 61 20 72 65 63 75 72 72 | 69 6e 67 20 69 74 65 6d |a recurr|ing item| |00005380| 0a 20 20 76 61 72 20 6f | 63 63 73 20 3d 20 74 68 |. var o|ccs = th| |00005390| 69 73 2e 67 65 74 4f 63 | 63 75 72 72 65 6e 63 65 |is.getOc|currence| |000053a0| 73 42 65 74 77 65 65 6e | 28 69 74 65 6d 29 3b 0a |sBetween|(item);.| |000053b0| 20 20 6f 63 63 73 2e 66 | 6f 72 45 61 63 68 28 74 | occs.f|orEach(t| |000053c0| 68 69 73 2e 61 67 65 6e | 64 61 4c 69 73 74 62 6f |his.agen|daListbo| |000053d0| 78 2e 61 64 64 49 74 65 | 6d 2c 20 74 68 69 73 2e |x.addIte|m, this.| |000053e0| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 29 3b 0a |agendaLi|stbox);.| |000053f0| 20 20 73 65 74 43 75 72 | 72 65 6e 74 45 76 65 6e | setCur|rentEven| |00005400| 74 28 29 3b 0a 7d 3b 0a | 0a 61 67 65 6e 64 61 4c |t();.};.|.agendaL| |00005410| 69 73 74 62 6f 78 2e 63 | 61 6c 65 6e 64 61 72 4f |istbox.c|alendarO| |00005420| 62 73 65 72 76 65 72 2e | 67 65 74 4f 63 63 75 72 |bserver.|getOccur| |00005430| 72 65 6e 63 65 73 42 65 | 74 77 65 65 6e 20 3d 0a |rencesBe|tween =.| |00005440| 66 75 6e 63 74 69 6f 6e | 20 67 65 74 4f 63 63 75 |function| getOccu| |00005450| 72 72 65 6e 63 65 73 42 | 65 74 77 65 65 6e 28 61 |rrencesB|etween(a| |00005460| 49 74 65 6d 29 20 7b 0a | 20 20 20 20 76 61 72 20 |Item) {.| var | |00005470| 6f 63 63 73 20 3d 20 5b | 5d 3b 0a 20 20 20 20 76 |occs = [|];. v| |00005480| 61 72 20 73 74 61 72 74 | 20 3d 20 74 68 69 73 2e |ar start| = this.| |00005490| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 67 65 |agendaLi|stbox.ge| |000054a0| 74 53 74 61 72 74 28 29 | 3b 0a 20 20 20 20 76 61 |tStart()|;. va| |000054b0| 72 20 65 6e 64 20 3d 20 | 74 68 69 73 2e 61 67 65 |r end = |this.age| |000054c0| 6e 64 61 4c 69 73 74 62 | 6f 78 2e 67 65 74 45 6e |ndaListb|ox.getEn| |000054d0| 64 28 29 3b 0a 20 20 20 | 20 69 66 20 28 73 74 61 |d();. | if (sta| |000054e0| 72 74 20 26 26 20 65 6e | 64 29 20 7b 0a 20 20 20 |rt && en|d) {. | |000054f0| 20 20 20 20 20 6f 63 63 | 73 20 3d 20 61 49 74 65 | occ|s = aIte| |00005500| 6d 2e 67 65 74 4f 63 63 | 75 72 72 65 6e 63 65 73 |m.getOcc|urrences| |00005510| 42 65 74 77 65 65 6e 28 | 73 74 61 72 74 2c 20 65 |Between(|start, e| |00005520| 6e 64 2c 20 7b 7d 29 3b | 0a 20 20 20 20 7d 0a 20 |nd, {});|. }. | |00005530| 20 20 20 72 65 74 75 72 | 6e 20 6f 63 63 73 3b 0a | retur|n occs;.| |00005540| 7d 0a 0a 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |}..agend|aListbox| |00005550| 2e 63 61 6c 65 6e 64 61 | 72 4f 62 73 65 72 76 65 |.calenda|rObserve| |00005560| 72 2e 6f 6e 44 65 6c 65 | 74 65 49 74 65 6d 20 3d |r.onDele|teItem =| |00005570| 0a 66 75 6e 63 74 69 6f | 6e 20 6f 62 73 65 72 76 |.functio|n observ| |00005580| 65 72 5f 6f 6e 44 65 6c | 65 74 65 49 74 65 6d 28 |er_onDel|eteItem(| |00005590| 69 74 65 6d 2c 20 72 65 | 62 75 69 6c 64 46 6c 61 |item, re|buildFla| |000055a0| 67 29 20 7b 0a 20 20 20 | 20 74 68 69 73 2e 6f 6e |g) {. | this.on| |000055b0| 4c 6f 63 61 6c 44 65 6c | 65 74 65 49 74 65 6d 28 |LocalDel|eteItem(| |000055c0| 69 74 65 6d 2c 20 74 72 | 75 65 29 3b 0a 7d 3b 0a |item, tr|ue);.};.| |000055d0| 0a 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 63 |.agendaL|istbox.c| |000055e0| 61 6c 65 6e 64 61 72 4f | 62 73 65 72 76 65 72 2e |alendarO|bserver.| |000055f0| 6f 6e 4c 6f 63 61 6c 44 | 65 6c 65 74 65 49 74 65 |onLocalD|eleteIte| |00005600| 6d 20 3d 0a 66 75 6e 63 | 74 69 6f 6e 20 6f 62 73 |m =.func|tion obs| |00005610| 65 72 76 65 72 5f 6f 6e | 4c 6f 63 61 6c 44 65 6c |erver_on|LocalDel| |00005620| 65 74 65 49 74 65 6d 28 | 69 74 65 6d 2c 20 6d 6f |eteItem(|item, mo| |00005630| 76 65 53 65 6c 65 63 74 | 69 6f 6e 29 20 7b 0a 20 |veSelect|ion) {. | |00005640| 20 20 20 69 66 20 28 74 | 68 69 73 2e 6d 42 61 74 | if (t|his.mBat| |00005650| 63 68 43 6f 75 6e 74 29 | 20 7b 0a 20 20 20 20 20 |chCount)| {. | |00005660| 20 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0a 20 | return |false;. | |00005670| 20 20 20 7d 0a 20 20 20 | 20 69 66 20 28 21 69 73 | }. | if (!is| |00005680| 45 76 65 6e 74 28 69 74 | 65 6d 29 29 20 7b 0a 20 |Event(it|em)) {. | |00005690| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 66 61 | r|eturn fa| |000056a0| 6c 73 65 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 76 |lse;. | }. v| |000056b0| 61 72 20 73 65 6c 65 63 | 74 65 64 49 74 65 6d 48 |ar selec|tedItemH| |000056c0| 61 73 68 49 64 20 3d 20 | 2d 31 3b 0a 2f 2f 20 67 |ashId = |-1;.// g| |000056d0| 65 74 20 61 6c 6c 20 73 | 75 62 20 69 74 65 6d 73 |et all s|ub items| |000056e0| 20 69 66 20 69 74 20 69 | 73 20 61 20 72 65 63 75 | if it i|s a recu| |000056f0| 72 72 69 6e 67 20 69 74 | 65 6d 0a 20 20 20 20 76 |rring it|em. v| |00005700| 61 72 20 6f 63 63 73 20 | 3d 20 74 68 69 73 2e 67 |ar occs |= this.g| |00005710| 65 74 4f 63 63 75 72 72 | 65 6e 63 65 73 42 65 74 |etOccurr|encesBet| |00005720| 77 65 65 6e 28 69 74 65 | 6d 29 3b 0a 20 20 20 20 |ween(ite|m);. | |00005730| 66 6f 72 20 28 76 61 72 | 20 69 20 3d 20 30 3b 20 |for (var| i = 0; | |00005740| 69 20 3c 20 6f 63 63 73 | 2e 6c 65 6e 67 74 68 3b |i < occs|.length;| |00005750| 20 69 2b 2b 29 20 7b 0a | 20 20 20 20 20 20 20 20 | i++) {.| | |00005760| 76 61 72 20 69 73 53 65 | 6c 65 63 74 65 64 20 3d |var isSe|lected =| |00005770| 20 74 68 69 73 2e 61 67 | 65 6e 64 61 4c 69 73 74 | this.ag|endaList| |00005780| 62 6f 78 2e 64 65 6c 65 | 74 65 49 74 65 6d 28 6f |box.dele|teItem(o| |00005790| 63 63 73 5b 69 5d 2c 20 | 6d 6f 76 65 53 65 6c 65 |ccs[i], |moveSele| |000057a0| 63 74 69 6f 6e 29 3b 0a | 20 20 20 20 20 20 20 20 |ction);.| | |000057b0| 69 66 20 28 69 73 53 65 | 6c 65 63 74 65 64 29 20 |if (isSe|lected) | |000057c0| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 73 65 |{. | se| |000057d0| 6c 65 63 74 65 64 49 74 | 65 6d 48 61 73 68 49 64 |lectedIt|emHashId| |000057e0| 20 3d 20 6f 63 63 73 5b | 69 5d 2e 68 61 73 68 49 | = occs[|i].hashI| |000057f0| 64 3b 0a 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |d;. | }. | |00005800| 20 7d 0a 20 20 20 20 72 | 65 74 75 72 6e 20 73 65 | }. r|eturn se| |00005810| 6c 65 63 74 65 64 49 74 | 65 6d 48 61 73 68 49 64 |lectedIt|emHashId| |00005820| 3b 0a 7d 3b 0a 0a 61 67 | 65 6e 64 61 4c 69 73 74 |;.};..ag|endaList| |00005830| 62 6f 78 2e 63 61 6c 65 | 6e 64 61 72 4f 62 73 65 |box.cale|ndarObse| |00005840| 72 76 65 72 2e 6f 6e 4d | 6f 64 69 66 79 49 74 65 |rver.onM|odifyIte| |00005850| 6d 20 3d 0a 66 75 6e 63 | 74 69 6f 6e 20 6f 62 73 |m =.func|tion obs| |00005860| 65 72 76 65 72 5f 6f 6e | 4d 6f 64 69 66 79 49 74 |erver_on|ModifyIt| |00005870| 65 6d 28 6e 65 77 49 74 | 65 6d 2c 20 6f 6c 64 49 |em(newIt|em, oldI| |00005880| 74 65 6d 29 20 7b 0a 20 | 20 20 20 69 66 20 28 74 |tem) {. | if (t| |00005890| 68 69 73 2e 6d 42 61 74 | 63 68 43 6f 75 6e 74 29 |his.mBat|chCount)| |000058a0| 20 7b 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 | {. | retur| |000058b0| 6e 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 76 61 72 |n;. }|. var| |000058c0| 20 73 65 6c 65 63 74 65 | 64 49 74 65 6d 48 61 73 | selecte|dItemHas| |000058d0| 68 49 64 20 3d 20 74 68 | 69 73 2e 6f 6e 4c 6f 63 |hId = th|is.onLoc| |000058e0| 61 6c 44 65 6c 65 74 65 | 49 74 65 6d 28 6f 6c 64 |alDelete|Item(old| |000058f0| 49 74 65 6d 2c 20 66 61 | 6c 73 65 29 3b 0a 20 20 |Item, fa|lse);. | |00005900| 20 20 69 66 20 28 21 69 | 73 45 76 65 6e 74 28 6e | if (!i|sEvent(n| |00005910| 65 77 49 74 65 6d 29 29 | 20 7b 0a 20 20 20 20 20 |ewItem))| {. | |00005920| 20 20 20 72 65 74 75 72 | 6e 3b 0a 20 20 20 20 7d | retur|n;. }| |00005930| 0a 20 20 20 20 74 68 69 | 73 2e 6f 6e 41 64 64 49 |. thi|s.onAddI| |00005940| 74 65 6d 28 6e 65 77 49 | 74 65 6d 29 3b 0a 20 20 |tem(newI|tem);. | |00005950| 20 20 69 66 20 28 73 65 | 6c 65 63 74 65 64 49 74 | if (se|lectedIt| |00005960| 65 6d 48 61 73 68 49 64 | 20 21 3d 20 2d 31 29 20 |emHashId| != -1) | |00005970| 7b 0a 20 20 20 20 20 20 | 20 20 76 61 72 20 6c 69 |{. | var li| |00005980| 73 74 49 74 65 6d 20 3d | 20 61 67 65 6e 64 61 4c |stItem =| agendaL| |00005990| 69 73 74 62 6f 78 2e 67 | 65 74 4c 69 73 74 49 74 |istbox.g|etListIt| |000059a0| 65 6d 42 79 48 61 73 68 | 49 64 28 73 65 6c 65 63 |emByHash|Id(selec| |000059b0| 74 65 64 49 74 65 6d 48 | 61 73 68 49 64 29 3b 0a |tedItemH|ashId);.| |000059c0| 20 20 20 20 20 20 20 20 | 69 66 20 28 6c 69 73 74 | |if (list| |000059d0| 49 74 65 6d 29 20 7b 0a | 20 20 20 20 20 20 20 20 |Item) {.| | |000059e0| 20 20 20 20 61 67 65 6e | 64 61 4c 69 73 74 62 6f | agen|daListbo| |000059f0| 78 2e 61 67 65 6e 64 61 | 4c 69 73 74 62 6f 78 43 |x.agenda|ListboxC| |00005a00| 6f 6e 74 72 6f 6c 2e 63 | 6c 65 61 72 53 65 6c 65 |ontrol.c|learSele| |00005a10| 63 74 69 6f 6e 28 29 3b | 0a 20 20 20 20 20 20 20 |ction();|. | |00005a20| 20 20 20 20 20 61 67 65 | 6e 64 61 4c 69 73 74 62 | age|ndaListb| |00005a30| 6f 78 2e 61 67 65 6e 64 | 61 4c 69 73 74 62 6f 78 |ox.agend|aListbox| |00005a40| 43 6f 6e 74 72 6f 6c 2e | 65 6e 73 75 72 65 45 6c |Control.|ensureEl| |00005a50| 65 6d 65 6e 74 49 73 56 | 69 73 69 62 6c 65 28 6c |ementIsV|isible(l| |00005a60| 69 73 74 49 74 65 6d 29 | 3b 0a 20 20 20 20 20 20 |istItem)|;. | |00005a70| 20 20 20 20 20 20 61 67 | 65 6e 64 61 4c 69 73 74 | ag|endaList| |00005a80| 62 6f 78 2e 61 67 65 6e | 64 61 4c 69 73 74 62 6f |box.agen|daListbo| |00005a90| 78 43 6f 6e 74 72 6f 6c | 2e 73 65 6c 65 63 74 65 |xControl|.selecte| |00005aa0| 64 49 74 65 6d 20 3d 20 | 6c 69 73 74 49 74 65 6d |dItem = |listItem| |00005ab0| 3b 0a 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 |;. | }. | |00005ac0| 7d 0a 20 20 20 20 73 65 | 74 43 75 72 72 65 6e 74 |}. se|tCurrent| |00005ad0| 45 76 65 6e 74 28 29 3b | 0a 7d 3b 0a 0a 61 67 65 |Event();|.};..age| |00005ae0| 6e 64 61 4c 69 73 74 62 | 6f 78 2e 63 61 6c 65 6e |ndaListb|ox.calen| |00005af0| 64 61 72 4f 62 73 65 72 | 76 65 72 2e 6f 6e 45 72 |darObser|ver.onEr| |00005b00| 72 6f 72 20 3d 20 66 75 | 6e 63 74 69 6f 6e 28 65 |ror = fu|nction(e| |00005b10| 72 72 6e 6f 2c 20 6d 73 | 67 29 20 7b 7d 3b 0a 0a |rrno, ms|g) {};..| |00005b20| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 63 61 |agendaLi|stbox.ca| |00005b30| 6c 65 6e 64 61 72 4f 62 | 73 65 72 76 65 72 2e 6f |lendarOb|server.o| |00005b40| 6e 50 72 6f 70 65 72 74 | 79 43 68 61 6e 67 65 64 |nPropert|yChanged| |00005b50| 20 3d 20 66 75 6e 63 74 | 69 6f 6e 28 61 43 61 6c | = funct|ion(aCal| |00005b60| 65 6e 64 61 72 2c 20 61 | 4e 61 6d 65 2c 20 61 56 |endar, a|Name, aV| |00005b70| 61 6c 75 65 2c 20 61 4f | 6c 64 56 61 6c 75 65 29 |alue, aO|ldValue)| |00005b80| 20 7b 7d 3b 0a 0a 61 67 | 65 6e 64 61 4c 69 73 74 | {};..ag|endaList| |00005b90| 62 6f 78 2e 63 61 6c 65 | 6e 64 61 72 4f 62 73 65 |box.cale|ndarObse| |00005ba0| 72 76 65 72 2e 6f 6e 50 | 72 6f 70 65 72 74 79 44 |rver.onP|ropertyD| |00005bb0| 65 6c 65 74 69 6e 67 20 | 3d 20 66 75 6e 63 74 69 |eleting |= functi| |00005bc0| 6f 6e 28 61 43 61 6c 65 | 6e 64 61 72 2c 20 61 4e |on(aCale|ndar, aN| |00005bd0| 61 6d 65 29 20 7b 7d 3b | 0a 0a 0a 61 67 65 6e 64 |ame) {};|...agend| |00005be0| 61 4c 69 73 74 62 6f 78 | 2e 63 61 6c 65 6e 64 61 |aListbox|.calenda| |00005bf0| 72 4f 62 73 65 72 76 65 | 72 2e 6f 6e 43 61 6c 65 |rObserve|r.onCale| |00005c00| 6e 64 61 72 52 65 6d 6f | 76 65 64 20 3d 0a 66 75 |ndarRemo|ved =.fu| |00005c10| 6e 63 74 69 6f 6e 20 61 | 67 65 6e 64 61 5f 63 61 |nction a|genda_ca| |00005c20| 6c 52 65 6d 6f 76 65 28 | 61 43 61 6c 65 6e 64 61 |lRemove(|aCalenda| |00005c30| 72 29 20 7b 0a 20 20 20 | 20 74 68 69 73 2e 61 67 |r) {. | this.ag| |00005c40| 65 6e 64 61 4c 69 73 74 | 62 6f 78 2e 72 65 66 72 |endaList|box.refr| |00005c50| 65 73 68 43 61 6c 65 6e | 64 61 72 51 75 65 72 79 |eshCalen|darQuery| |00005c60| 28 29 3b 0a 7d 3b 0a 0a | 61 67 65 6e 64 61 4c 69 |();.};..|agendaLi| |00005c70| 73 74 62 6f 78 2e 63 61 | 6c 65 6e 64 61 72 4f 62 |stbox.ca|lendarOb| |00005c80| 73 65 72 76 65 72 2e 6f | 6e 43 61 6c 65 6e 64 61 |server.o|nCalenda| |00005c90| 72 41 64 64 65 64 20 3d | 0a 66 75 6e 63 74 69 6f |rAdded =|.functio| |00005ca0| 6e 20 61 67 65 6e 64 61 | 5f 63 61 6c 41 64 64 28 |n agenda|_calAdd(| |00005cb0| 61 43 61 6c 65 6e 64 61 | 72 29 20 7b 0a 20 20 20 |aCalenda|r) {. | |00005cc0| 20 74 68 69 73 2e 61 67 | 65 6e 64 61 4c 69 73 74 | this.ag|endaList| |00005cd0| 62 6f 78 2e 72 65 66 72 | 65 73 68 43 61 6c 65 6e |box.refr|eshCalen| |00005ce0| 64 61 72 51 75 65 72 79 | 28 29 3b 0a 7d 3b 0a 0a |darQuery|();.};..| |00005cf0| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 63 61 |agendaLi|stbox.ca| |00005d00| 6c 65 6e 64 61 72 4f 62 | 73 65 72 76 65 72 2e 6f |lendarOb|server.o| |00005d10| 6e 44 65 66 61 75 6c 74 | 43 61 6c 65 6e 64 61 72 |nDefault|Calendar| |00005d20| 43 68 61 6e 67 65 64 20 | 3d 20 66 75 6e 63 74 69 |Changed |= functi| |00005d30| 6f 6e 28 61 43 61 6c 65 | 6e 64 61 72 29 20 7b 0a |on(aCale|ndar) {.| |00005d40| 7d 3b 0a 0a 66 75 6e 63 | 74 69 6f 6e 20 73 65 74 |};..func|tion set| |00005d50| 43 75 72 72 65 6e 74 45 | 76 65 6e 74 28 29 20 7b |CurrentE|vent() {| |00005d60| 0a 20 20 20 20 69 66 20 | 28 61 67 65 6e 64 61 4c |. if |(agendaL| |00005d70| 69 73 74 62 6f 78 2e 73 | 68 6f 77 73 54 6f 64 61 |istbox.s|howsToda| |00005d80| 79 28 29 20 26 26 20 61 | 67 65 6e 64 61 4c 69 73 |y() && a|gendaLis| |00005d90| 74 62 6f 78 2e 74 6f 64 | 61 79 2e 6f 70 65 6e 29 |tbox.tod|ay.open)| |00005da0| 20 7b 0a 0a 20 20 20 20 | 20 20 20 20 76 61 72 20 | {.. | var | |00005db0| 6d 73 53 63 68 65 64 75 | 6c 65 54 69 6d 65 20 3d |msSchedu|leTime =| |00005dc0| 20 2d 31 3b 0a 20 20 20 | 20 20 20 20 20 76 61 72 | -1;. | var| |00005dd0| 20 63 6f 6d 70 6c 69 73 | 74 49 74 65 6d 20 3d 20 | complis|tItem = | |00005de0| 61 67 65 6e 64 61 4c 69 | 73 74 62 6f 78 2e 74 6f |agendaLi|stbox.to| |00005df0| 6d 6f 72 72 6f 77 2e 6c | 69 73 74 49 74 65 6d 2e |morrow.l|istItem.| |00005e00| 70 72 65 76 69 6f 75 73 | 53 69 62 6c 69 6e 67 3b |previous|Sibling;| |00005e10| 0a 20 20 20 20 20 20 20 | 20 76 61 72 20 72 65 6d |. | var rem| |00005e20| 6f 76 65 6c 69 73 74 20 | 3d 20 5b 5d 3b 0a 20 20 |ovelist |= [];. | |00005e30| 20 20 20 20 20 20 76 61 | 72 20 61 6e 6f 77 20 3d | va|r anow =| |00005e40| 20 6e 6f 77 28 29 3b 0a | 20 20 20 20 20 20 20 20 | now();.| | |00005e50| 76 61 72 20 6d 73 75 6e | 74 69 6c 6c 65 6e 64 20 |var msun|tillend | |00005e60| 3d 20 30 3b 0a 20 20 20 | 20 20 20 20 20 76 61 72 |= 0;. | var| |00005e70| 20 6d 73 75 6e 74 69 6c | 6c 73 74 61 72 74 20 3d | msuntil|lstart =| |00005e80| 20 30 3b 0a 20 20 20 20 | 20 20 20 20 64 6f 20 7b | 0;. | do {| |00005e90| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 76 61 72 |. | var| |00005ea0| 20 6c 65 61 76 65 6c 6f | 6f 70 20 3d 20 28 21 61 | leavelo|op = (!a| |00005eb0| 67 65 6e 64 61 4c 69 73 | 74 62 6f 78 2e 69 73 45 |gendaLis|tbox.isE| |00005ec0| 76 65 6e 74 4c 69 73 74 | 49 74 65 6d 28 63 6f 6d |ventList|Item(com| |00005ed0| 70 6c 69 73 74 49 74 65 | 6d 29 29 3b 0a 20 20 20 |plistIte|m));. | |00005ee0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 21 6c 65 | | if (!le| |00005ef0| 61 76 65 6c 6f 6f 70 29 | 20 7b 0a 20 20 20 20 20 |aveloop)| {. | |00005f00| 20 20 20 20 20 20 20 20 | 20 20 20 6d 73 75 6e 74 | | msunt| |00005f10| 69 6c 6c 73 74 61 72 74 | 20 3d 20 20 63 6f 6d 70 |illstart| = comp| |00005f20| 6c 69 73 74 49 74 65 6d | 2e 67 65 74 49 74 65 6d |listItem|.getItem| |00005f30| 28 29 2e 73 74 61 72 74 | 44 61 74 65 0a 20 20 20 |().start|Date. | |00005f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00005f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2e 67 65 | | .ge| |00005f60| 74 49 6e 54 69 6d 65 7a | 6f 6e 65 28 61 67 65 6e |tInTimez|one(agen| |00005f70| 64 61 4c 69 73 74 62 6f | 78 2e 6b 44 65 66 61 75 |daListbo|x.kDefau| |00005f80| 6c 74 54 69 6d 65 7a 6f | 6e 65 29 0a 20 20 20 20 |ltTimezo|ne). | |00005f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00005fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2e 73 75 62 | | .sub| |00005fb0| 74 72 61 63 74 44 61 74 | 65 28 61 6e 6f 77 29 2e |tractDat|e(anow).| |00005fc0| 69 6e 53 65 63 6f 6e 64 | 73 3b 0a 20 20 20 20 20 |inSecond|s;. | |00005fd0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 6d | | if (m| |00005fe0| 73 75 6e 74 69 6c 6c 73 | 74 61 72 74 20 3c 3d 20 |suntills|tart <= | |00005ff0| 30 29 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |0) {. | | |00006000| 20 20 20 20 20 20 20 20 | 20 76 61 72 20 6d 73 75 | | var msu| |00006010| 6e 74 69 6c 6c 65 6e 64 | 20 3d 20 63 6f 6d 70 6c |ntillend| = compl| |00006020| 69 73 74 49 74 65 6d 2e | 67 65 74 49 74 65 6d 28 |istItem.|getItem(| |00006030| 29 2e 65 6e 64 44 61 74 | 65 0a 20 20 20 20 20 20 |).endDat|e. | |00006040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006060| 20 20 2e 67 65 74 49 6e | 54 69 6d 65 7a 6f 6e 65 | .getIn|Timezone| |00006070| 28 61 67 65 6e 64 61 4c | 69 73 74 62 6f 78 2e 6b |(agendaL|istbox.k| |00006080| 44 65 66 61 75 6c 74 54 | 69 6d 65 7a 6f 6e 65 29 |DefaultT|imezone)| |00006090| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |000060a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000060b0| 20 20 20 20 20 20 20 20 | 20 2e 73 75 62 74 72 61 | | .subtra| |000060c0| 63 74 44 61 74 65 28 61 | 6e 6f 77 29 2e 69 6e 53 |ctDate(a|now).inS| |000060d0| 65 63 6f 6e 64 73 3b 0a | 20 20 20 20 20 20 20 20 |econds;.| | |000060e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (| |000060f0| 6d 73 75 6e 74 69 6c 6c | 65 6e 64 20 3e 3d 20 30 |msuntill|end >= 0| |00006100| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00006110| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6d 70 | | comp| |00006120| 6c 69 73 74 49 74 65 6d | 2e 73 65 74 41 74 74 72 |listItem|.setAttr| |00006130| 69 62 75 74 65 28 22 63 | 75 72 72 65 6e 74 22 2c |ibute("c|urrent",| |00006140| 20 22 74 72 75 65 22 29 | 3b 0a 20 20 20 20 20 20 | "true")|;. | |00006150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006160| 20 20 69 66 20 28 28 6d | 73 75 6e 74 69 6c 6c 65 | if ((m|suntille| |00006170| 6e 64 20 3c 20 6d 73 53 | 63 68 65 64 75 6c 65 54 |nd < msS|cheduleT| |00006180| 69 6d 65 29 20 20 7c 7c | 20 28 6d 73 53 63 68 65 |ime) ||| (msSche| |00006190| 64 75 6c 65 54 69 6d 65 | 20 3d 3d 20 2d 31 29 29 |duleTime| == -1))| |000061a0| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | | |000061b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 73 | | ms| |000061c0| 53 63 68 65 64 75 6c 65 | 54 69 6d 65 20 3d 20 6d |Schedule|Time = m| |000061d0| 73 75 6e 74 69 6c 6c 65 | 6e 64 3b 0a 20 20 20 20 |suntille|nd;. | |000061e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000061f0| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | | |00006200| 20 20 20 20 20 20 20 20 | 20 20 7d 20 65 6c 73 65 | | } else| |00006210| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | | |00006220| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 6d 6f | | remo| |00006230| 76 65 6c 69 73 74 2e 70 | 75 73 68 28 63 6f 6d 70 |velist.p|ush(comp| |00006240| 6c 69 73 74 49 74 65 6d | 29 3b 0a 20 20 20 20 20 |listItem|);. | |00006250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7d | | }| |00006260| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00006270| 20 7d 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 20 20 | } else |{. | |00006280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f | | co| |00006290| 6d 70 6c 69 73 74 49 74 | 65 6d 2e 72 65 6d 6f 76 |mplistIt|em.remov| |000062a0| 65 41 74 74 72 69 62 75 | 74 65 28 22 63 75 72 72 |eAttribu|te("curr| |000062b0| 65 6e 74 22 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |ent");. | | |000062c0| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. | |000062d0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 28 6d 73 | | if ((ms| |000062e0| 53 63 68 65 64 75 6c 65 | 54 69 6d 65 20 3d 3d 20 |Schedule|Time == | |000062f0| 2d 31 29 20 7c 7c 20 28 | 6d 73 75 6e 74 69 6c 6c |-1) || (|msuntill| |00006300| 73 74 61 72 74 20 3c 20 | 6d 73 53 63 68 65 64 75 |start < |msSchedu| |00006310| 6c 65 54 69 6d 65 29 29 | 20 7b 0a 20 20 20 20 20 |leTime))| {. | |00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i| |00006330| 66 20 28 6d 73 75 6e 74 | 69 6c 6c 73 74 61 72 74 |f (msunt|illstart| |00006340| 20 3e 20 30 29 20 7b 0a | 20 20 20 20 20 20 20 20 | > 0) {.| | |00006350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006360| 6d 73 53 63 68 65 64 75 | 6c 65 54 69 6d 65 20 3d |msSchedu|leTime =| |00006370| 20 6d 73 75 6e 74 69 6c | 6c 73 74 61 72 74 3b 0a | msuntil|lstart;.| |00006380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00006390| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | | |000063a0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| | |000063b0| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 20 20 | }. | | |000063c0| 20 20 69 66 20 28 21 6c | 65 61 76 65 6c 6f 6f 70 | if (!l|eaveloop| |000063d0| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |000063e0| 20 20 20 20 63 6f 6d 70 | 6c 69 73 74 49 74 65 6d | comp|listItem| |000063f0| 20 3d 20 63 6f 6d 70 6c | 69 73 74 49 74 65 6d 2e | = compl|istItem.| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.