Produced by Araxis Merge on 1/2/2018 12:00:55 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue Jan 2 17:00:55 2018 UTC | ||
| 2 | HTRE_P2.zip\src.zip\output\ihta_admin.zip\register.zip | whproxy.js | Mon Apr 18 16:27:58 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 226 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | // WebH elp 5.10.0 01 | |||||
| 2 | ||||||
| 3 | var gbInit ed = false ; | |||||
| 4 | var gWndSt ubPage = n ull; | |||||
| 5 | ||||||
| 6 | function g etStubPage _inter(wCu rrent) { | |||||
| 7 | if (nu ll == wCur rent.paren t || wCurr ent.parent == wCurre nt) | |||||
| 8 | re turn null; | |||||
| 9 | ||||||
| 10 | if (ty peof (wCur rent.paren t.whname) == "string " && "wh_s tub" == wC urrent.par ent.whname ) | |||||
| 11 | re turn wCurr ent.parent ; | |||||
| 12 | else { | |||||
| 13 | if (wCurrent .parent.fr ames.lengt h != 0 && wCurrent.p arent != w Current) | |||||
| 14 | return g etStubPage _inter(wCu rrent.pare nt); | |||||
| 15 | el se | |||||
| 16 | return n ull; | |||||
| 17 | } | |||||
| 18 | } | |||||
| 19 | ||||||
| 20 | function g etStubPage () { | |||||
| 21 | if (!g bInited) { | |||||
| 22 | if (msgHandl erProxy.ch eckChromeL ocal()) { | |||||
| 23 | var oWnd = top.fra mes['Conte ntFrame']; | |||||
| 24 | if (type of (oWnd) != 'undefi ned' && oW nd != null ) | |||||
| 25 | gWnd StubPage = oWnd; | |||||
| 26 | else | |||||
| 27 | gWnd StubPage = top; | |||||
| 28 | if (gWnd StubPage = = this) | |||||
| 29 | gWnd StubPage = null; | |||||
| 30 | } | |||||
| 31 | el se | |||||
| 32 | gWndStub Page = get StubPage_i nter(windo w); | |||||
| 33 | gb Inited = t rue; | |||||
| 34 | } | |||||
| 35 | return gWndStubP age; | |||||
| 36 | } | |||||
| 37 | ||||||
| 38 | var g_qCal lBack = {} ; | |||||
| 39 | ||||||
| 40 | function M essageHand erProxy() { | |||||
| 41 | this.s rcWnd = nu ll; | |||||
| 42 | this.r outerWnd = null; | |||||
| 43 | this.u niqueId = 0; | |||||
| 44 | ||||||
| 45 | this.i nit = func tion() { | |||||
| 46 | th is.srcWnd = window; | |||||
| 47 | th is.routerW nd = getSt ubPage(); | |||||
| 48 | if (this.che ckChromeLo cal()) { | |||||
| 49 | this.src Wnd.addEve ntListener ("message" , onReceiv eMsg, fals e); | |||||
| 50 | } | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | this.r egisterLis tener = fu nction(fra meName, ms gId) { | |||||
| 54 | if (this.rou terWnd) { | |||||
| 55 | if (this .checkChro meLocal()) { | |||||
| 56 | if ( this.route rWnd.postM essage) { | |||||
| 57 | var oMsg = new whMes sage(msgId , frameNam e, null); | |||||
| 58 | oMsg.msgTy pe = "regi ster"; | |||||
| 59 | this.route rWnd.postM essage(JSO N.stringif y(oMsg), " *"); | |||||
| 60 | return tru e; | |||||
| 61 | } | |||||
| 62 | } | |||||
| 63 | else { | |||||
| 64 | if ( this.route rWnd.regis terListene r) { | |||||
| 65 | this.route rWnd.regis terListene r(frameNam e, msgId); | |||||
| 66 | return tru e; | |||||
| 67 | } | |||||
| 68 | } | |||||
| 69 | } | |||||
| 70 | re turn false ; | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | this.r egisterLis tener2 = f unction (m sgId) { | |||||
| 74 | if (this.rou terWnd) { | |||||
| 75 | if (this .checkChro meLocal()) { | |||||
| 76 | var oMsg = new whMessage (msgId, nu ll, null); | |||||
| 77 | oMsg .msgType = "register "; | |||||
| 78 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 79 | } | |||||
| 80 | else | |||||
| 81 | this .routerWnd .registerL istener2(t his.srcWnd , msgId); | |||||
| 82 | return t rue; | |||||
| 83 | } | |||||
| 84 | re turn false ; | |||||
| 85 | } | |||||
| 86 | ||||||
| 87 | this.u nregisterL istener = function ( frameName, msgId) { | |||||
| 88 | if (this.rou terWnd) { | |||||
| 89 | if (this .checkChro meLocal()) { | |||||
| 90 | var oMsg = new whMessage (msgId, fr ameName, n ull); | |||||
| 91 | oMsg .msgType = "unregist er"; | |||||
| 92 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 93 | } | |||||
| 94 | else | |||||
| 95 | this .routerWnd .unregiste rListener( frameName, msgId); | |||||
| 96 | return t rue; | |||||
| 97 | } | |||||
| 98 | re turn false ; | |||||
| 99 | } | |||||
| 100 | ||||||
| 101 | this.u nregisterL istener2 = function (msgId) { | |||||
| 102 | if (this.rou terWnd) { | |||||
| 103 | if (this .checkChro meLocal()) { | |||||
| 104 | var oMsg = new whMessage (msgId, nu ll, null); | |||||
| 105 | oMsg .msgType = "unregist er"; | |||||
| 106 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 107 | } | |||||
| 108 | else | |||||
| 109 | this .routerWnd .unregiste rListener2 (this.srcW nd, msgId) ; | |||||
| 110 | return t rue; | |||||
| 111 | } | |||||
| 112 | re turn false ; | |||||
| 113 | } | |||||
| 114 | ||||||
| 115 | this.n otify = fu nction (oM sg) { | |||||
| 116 | if (this.rou terWnd) { | |||||
| 117 | if (this .checkChro meLocal()) { | |||||
| 118 | oMsg .msgType = "notify"; | |||||
| 119 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 120 | } | |||||
| 121 | else | |||||
| 122 | this .routerWnd .notify(oM sg); | |||||
| 123 | } | |||||
| 124 | } | |||||
| 125 | ||||||
| 126 | this.r equest = f unction (o Msg, fCall back) { | |||||
| 127 | if (this.rou terWnd) { | |||||
| 128 | if (this .checkChro meLocal()) { | |||||
| 129 | this .uniqueId+ +; | |||||
| 130 | if ( fCallback) | |||||
| 131 | g_qCallBac k[this.uni queId] = f Callback; | |||||
| 132 | oMsg .msgType = "request" ; | |||||
| 133 | oMsg .msgSeqNum = this.un iqueId; | |||||
| 134 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 135 | } | |||||
| 136 | else { | |||||
| 137 | this .routerWnd .request(o Msg); | |||||
| 138 | if ( fCallback) | |||||
| 139 | fCallback( oMsg); | |||||
| 140 | } | |||||
| 141 | } | |||||
| 142 | } | |||||
| 143 | ||||||
| 144 | this.r eply = fun ction (oMs g) { | |||||
| 145 | if (this.rou terWnd) { | |||||
| 146 | if (this .checkChro meLocal()) { | |||||
| 147 | oMsg .msgType = "reply"; | |||||
| 148 | this .routerWnd .postMessa ge(JSON.st ringify(oM sg), "*"); | |||||
| 149 | } | |||||
| 150 | } | |||||
| 151 | } | |||||
| 152 | ||||||
| 153 | this.c heckChrome Local = fu nction() { | |||||
| 154 | if (window.c hrome) | |||||
| 155 | if (docu ment.locat ion.protoc ol.substri ng(0, 4) = = "file") | |||||
| 156 | return t rue; | |||||
| 157 | re turn false ; | |||||
| 158 | } | |||||
| 159 | } | |||||
| 160 | ||||||
| 161 | function o nReceiveMs g(event) { | |||||
| 162 | try{ | |||||
| 163 | va r oMsg = J SON.parse( event.data ); | |||||
| 164 | sw itch (oMsg .msgType) { | |||||
| 165 | case "re gister": | |||||
| 166 | brea k; | |||||
| 167 | case "un register": | |||||
| 168 | brea k; | |||||
| 169 | case "no tify": | |||||
| 170 | onRe ceiveNotif ication(oM sg); | |||||
| 171 | brea k; | |||||
| 172 | case "re quest": | |||||
| 173 | onRe ceiveReque st(oMsg); | |||||
| 174 | brea k; | |||||
| 175 | case "re ply": | |||||
| 176 | g_qC allBack[oM sg.msgSeqN um](oMsg); | |||||
| 177 | g_qC allBack[oM sg.msgSeqN um] = null ; | |||||
| 178 | brea k; | |||||
| 179 | } | |||||
| 180 | }catch (e) | |||||
| 181 | { | |||||
| 182 | } | |||||
| 183 | } | |||||
| 184 | ||||||
| 185 | var msgHan dlerProxy = new Mess ageHanderP roxy(); | |||||
| 186 | msgHandler Proxy.init (); | |||||
| 187 | ||||||
| 188 | function r egisterLis tener(fram eName, msg Id) { | |||||
| 189 | msgHan dlerProxy. registerLi stener(fra meName, ms gId); | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | function r egisterLis tener2(msg Id) { | |||||
| 193 | msgHan dlerProxy. registerLi stener2(ms gId); | |||||
| 194 | } | |||||
| 195 | ||||||
| 196 | function u nregisterL istener(fr ameName, m sgId) { | |||||
| 197 | msgHan dlerProxy. unregister Listener(f rameName, msgId); | |||||
| 198 | } | |||||
| 199 | ||||||
| 200 | function u nregisterL istener2(m sgId) { | |||||
| 201 | msgHan dlerProxy. unregister Listener2( msgId); | |||||
| 202 | } | |||||
| 203 | ||||||
| 204 | function n otify(oMsg ) { | |||||
| 205 | msgHan dlerProxy. notify(oMs g); | |||||
| 206 | } | |||||
| 207 | ||||||
| 208 | function r equest(oMs g, fCallba ck) { | |||||
| 209 | msgHan dlerProxy. request(oM sg, fCallb ack); | |||||
| 210 | } | |||||
| 211 | ||||||
| 212 | function r eply(oMsg) { | |||||
| 213 | msgHa ndlerProxy .reply(oMs g); | |||||
| 214 | } | |||||
| 215 | ||||||
| 216 | var gbWhPr oxy=true; | |||||
| 217 | ||||||
| 218 | var gbPrev iew=false; | |||||
| 219 | gbPreview= false; | |||||
| 220 | if (gbPrev iew) | |||||
| 221 | do cument.onc ontextmenu =contextMe nu; | |||||
| 222 | ||||||
| 223 | function c ontextMenu () | |||||
| 224 | { | |||||
| 225 | re turn false ; | |||||
| 226 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.