Produced by Araxis Merge on 5/9/2017 12:03:04 PM Eastern Daylight 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 May 9 16:03:04 2017 UTC | ||
| 2 | OSCIF_HEC_v1.4_Sprint23_build4_Apr_2017.zip\CRM_solutions\Managed\North52BPA_1_0_0_506_managed_2013_2015_2016..zip\WebResources | north52_javascripttooltip6408EF87-23A5-E111-A88E-00155DF5B00D | Mon Sep 19 18:20:18 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 117 |
| 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 | var Toolti pPopup = n ull; | |||||
| 2 | ||||||
| 3 | if (typeof (N52) == "undefined ") | |||||
| 4 | { N52 = {} ; } | |||||
| 5 | ||||||
| 6 | N52.ToolTi p = | |||||
| 7 | { | |||||
| 8 | ||||||
| 9 | ||||||
| 10 | ||||||
| 11 | AddToolTip : function ( controlI d , toolTi p, height, width) | |||||
| 12 | { | |||||
| 13 | var cont rol = docu ment.getEl ementById( controlId ); | |||||
| 14 | ||||||
| 15 | if (tool Tip[0].chi ldNodes.le ngth == 1) | |||||
| 16 | contr ol.ToolTip = toolTi p[0].child Nodes[0].n odeValue; | |||||
| 17 | else | |||||
| 18 | contr ol.ToolTip = toolTi p[0].child Nodes[1].n odeValue; | |||||
| 19 | ||||||
| 20 | control. ToolTip = control. ToolTip.re place('<-- ',''); | |||||
| 21 | control. ToolTip = control. ToolTip.re place('--> ',''); | |||||
| 22 | control. Height = height; | |||||
| 23 | control. Width = width; | |||||
| 24 | ||||||
| 25 | if (toolTi p[0].child Nodes.leng th == 1) | |||||
| 26 | { | |||||
| 27 | contr ol.attachE vent( "onm ouseover" , N52.Too lTip.ShowT oolTip ); | |||||
| 28 | contr ol.attachE vent( "onm ouseout" , N52.Too lTip.HideT oolTip ); | |||||
| 29 | } | |||||
| 30 | else | |||||
| 31 | { | |||||
| 32 | contr ol.addEven tListener( "onmouseov er" , N52 .ToolTip.S howToolTip , false); | |||||
| 33 | contr ol.addEven tListener( "onmouseou t" , N52. ToolTip.Hi deToolTip, false); | |||||
| 34 | } | |||||
| 35 | }, | |||||
| 36 | ||||||
| 37 | ||||||
| 38 | ShowToolTi p: functio n () | |||||
| 39 | { | |||||
| 40 | var control = even t.srcEleme nt; | |||||
| 41 | Tool tipPopup = window.cr eatePopup( ); | |||||
| 42 | ||||||
| 43 | var ToolTipHTM L = "<DIV style='wi dth:100%;h eight:100% ;border:1p x dashed g ray;backgr ound-color : #FFFFCC; filter: pr ogid: DXIm ageTransfo rm.Microso ft.Gradien t(Gradient Type=0,Sta rtColorStr =#ffffff,E ndColorStr =#cecfde); padding-le ft:2px;fon t:10px tah oma'>" + c ontrol.Too lTip + "</ DIV>"; | |||||
| 44 | ||||||
| 45 | Toolt ipPopup.do cument.bod y.innerHTM L = ToolTi pHTML ; | |||||
| 46 | ||||||
| 47 | ||||||
| 48 | var W idth = c ontrol.Wid th; | |||||
| 49 | var H eight= co ntrol.Heig ht; | |||||
| 50 | ||||||
| 51 | var Position = N52.ToolT ip .GetCon trolPostio n ( contro l ); | |||||
| 52 | ||||||
| 53 | var Left = P osition.X - 50; | |||||
| 54 | var Top = P osition.Y + 10; | |||||
| 55 | ||||||
| 56 | Tool tipPopup.s how( Left , Top , Wi dth , Heig ht , null ); | |||||
| 57 | ||||||
| 58 | }, | |||||
| 59 | ||||||
| 60 | GetControl Postion: f unction( c ontrol ) | |||||
| 61 | { | |||||
| 62 | var Position = new Objec t(); | |||||
| 63 | var controlHei ght = cont rol.offset Height; | |||||
| 64 | ||||||
| 65 | var iY = 0, iX = 0; | |||||
| 66 | whil e( control != null ) | |||||
| 67 | ||||||
| 68 | { | |||||
| 69 | iY += co ntrol.offs etTop; | |||||
| 70 | iX += co ntrol.offs etLeft; | |||||
| 71 | control = control. offsetPare nt; | |||||
| 72 | } | |||||
| 73 | ||||||
| 74 | Posi tion.X = i X + screen Left; | |||||
| 75 | Posi tion.Y = i Y + screen Top + cont rolHeight; | |||||
| 76 | ||||||
| 77 | retu rn Positio n; | |||||
| 78 | }, | |||||
| 79 | ||||||
| 80 | ||||||
| 81 | HideToolTi p: functio n() | |||||
| 82 | { | |||||
| 83 | if( TooltipPop up ) | |||||
| 84 | TooltipPop up.hide(); | |||||
| 85 | }, | |||||
| 86 | ||||||
| 87 | LoadToolTi ps: functi on() | |||||
| 88 | { | |||||
| 89 | ||||||
| 90 | $.ajax({ | |||||
| 91 | type: "G ET", | |||||
| 92 | url: ".. /WebResour ces/north5 2_xml_tool tips", | |||||
| 93 | dataType : "xml", | |||||
| 94 | success: N52.ToolT ip .Proces sToolTips, | |||||
| 95 | error: f unction (d ata, texts tatus, Xml HttpRequet ) { alert( 'North52 F ormula Man ager Error :' + textS tatus + ' : ');} | |||||
| 96 | }); | |||||
| 97 | ||||||
| 98 | }, | |||||
| 99 | ||||||
| 100 | ProcessToo lTips: fun ction (dat a) { | |||||
| 101 | ||||||
| 102 | var enti ty = Xrm.P age.data.e ntity.getE ntityName( ).toString ().toLower Case(); | |||||
| 103 | entXML = $("entity [name=" + entity + " ]", data) | |||||
| 104 | ||||||
| 105 | $(entXML ).children ().each(fu nction (i) { | |||||
| 106 | var att r = this.g etAttribut e("name"); | |||||
| 107 | var txt = $(this) .find('too ltip'); | |||||
| 108 | var hei ght = $(th is).find(' height').t ext(); | |||||
| 109 | var wid th = $(thi s).find('w idth').tex t(); | |||||
| 110 | N52.Too lTip .AddT oolTip(att r , txt, height, wi dth); | |||||
| 111 | }); | |||||
| 112 | } | |||||
| 113 | ||||||
| 114 | ||||||
| 115 | ||||||
| 116 | ||||||
| 117 | }; //end t op |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.