Produced by Araxis Merge on 2/1/2017 2:57:51 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\js\ckeditor\plugins\notification | plugin.js | Tue Dec 20 19:50:43 2016 UTC |
| 2 | Wed Feb 1 19:57:51 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 19 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |||||
| 2 | Copyright (c) 2003- 2015, CKSo urce - Fre derico Kna bben. All rights res erved. | |||||
| 3 | This soft ware is co vered by C KEditor Co mmercial L icense. Us age withou t proper l icense is prohibited . | |||||
| 4 | */ | |||||
| 5 | CKEDITOR.p lugins.add ("notifica tion",{lan g:"cs,da,d e,en,eo,fr ,gl,it,ko, ku,nb,nl,p l,pt-br,ru ,sv,tr,zh, zh-cn",req uires:"too lbar",init :function( b){functio n a(b){var a=new CKE DITOR.dom. element("d iv");a.set Styles({po sition:"fi xed","marg in-left":" -9999px"}) ;a.setAttr ibutes({"a ria-live": "assertive ","aria-at omic":"tru e"});a.set Text(b);CK EDITOR.doc ument.getB ody().appe nd(a);setT imeout(fun ction(){a. remove()}, 100)}b._.n otificatio nArea=new Area(b);b. showNotifi cation=fun ction(a,d, e){var g,m ;"progress "==d?g=e:m = | |||||
| 6 | e;a=new CK EDITOR.plu gins.notif ication(b, {message:a ,type:d,pr ogress:g,d uration:m} );a.show() ;return a} ;b.on("key ",function (c){if(27= =c.data.ke yCode){var d=b._.not ificationA rea.notifi cations;d. length&&(a (b.lang.no tification .closed),d [d.length- 1].hide(), c.cancel() )}})}}); | |||||
| 7 | function N otificatio n(b,a){CKE DITOR.tool s.extend(t his,a,{edi tor:b,id:" cke-"+CKED ITOR.tools .getUnique Id(),area: b._.notifi cationArea });a.type| |(this.typ e="info"); this.eleme nt=this._c reateEleme nt();b.plu gins.clipb oard&&CKED ITOR.plugi ns.clipboa rd.prevent DefaultDro pOnElement (this.elem ent)} | |||||
| 8 | Notificati on.prototy pe={show:f unction(){ !1!==this. editor.fir e("notific ationShow" ,{notifica tion:this} )&&(this.a rea.add(th is),this._ hideAfterT imeout())} ,update:fu nction(b){ var a=!0;! 1===this.e ditor.fire ("notifica tionUpdate ",{notific ation:this ,options:b })&&(a=!1) ;var c=thi s.element, d=c.findOn e(".cke_no tification _message") ,e=c.findO ne(".cke_n otificatio n_progress "),g=b.typ e;c.remove Attribute( "role");b. progress&& "progress" !=this.typ e&&(g="pro gress");g& &(c.remove Class(this ._getClass ()),c.remo veAttribut e("aria-la bel"), | |||||
| 9 | this.type= g,c.addCla ss(this._g etClass()) ,c.setAttr ibute("ari a-label",t his.type), "progress" !=this.typ e||e?"prog ress"!=thi s.type&&e& &e.remove( ):(e=this. _createPro gressEleme nt(),e.ins ertBefore( d)));void 0!==b.mess age&&(this .message=b .message,d .setHtml(t his.messag e));void 0 !==b.progr ess&&(this .progress= b.progress ,e&&e.setS tyle("widt h",this._g etPercenta geProgress ()));a&&b. important& &(c.setAtt ribute("ro le","alert "),this.is Visible()| |this.area .add(this) );this.dur ation=b.du ration;thi s._hideAft erTimeout( )}, | |||||
| 10 | hide:funct ion(){!1!= =this.edit or.fire("n otificatio nHide",{no tification :this})&&t his.area.r emove(this )},isVisib le:functio n(){return 0<=CKEDIT OR.tools.i ndexOf(thi s.area.not ifications ,this)},_c reateEleme nt:functio n(){var b= this,a,c,d =this.edit or.lang.co mmon.close ;a=new CKE DITOR.dom. element("d iv");a.add Class("cke _notificat ion");a.ad dClass(thi s._getClas s());a.set Attributes ({id:this. id,role:"a lert","ari a-label":t his.type}) ;"progress "==this.ty pe&&a.appe nd(this._c reateProgr essElement ());c=new CKEDITOR.d om.element ("p"); | |||||
| 11 | c.addClass ("cke_noti fication_m essage");c .setHtml(t his.messag e);a.appen d(c);c=CKE DITOR.dom. element.cr eateFromHt ml('\x3ca class\x3d" cke_notifi cation_clo se" href\x 3d"javascr ipt:void(0 )" title\x 3d"'+d+'" role\x3d"b utton" tab index\x3d" -1"\x3e\x3 cspan clas s\x3d"cke_ label"\x3e X\x3c/span \x3e\x3c/a \x3e');a.a ppend(c);c .on("click ",function (){b.edito r.focus(); b.hide()}) ;return a} ,_getClass :function( ){return"p rogress"== this.type? "cke_notif ication_in fo":"cke_n otificatio n_"+this.t ype},_crea teProgress Element:fu nction(){v ar b= | |||||
| 12 | new CKEDIT OR.dom.ele ment("span ");b.addCl ass("cke_n otificatio n_progress ");b.setSt yle("width ",this._ge tPercentag eProgress( ));return b},_getPer centagePro gress:func tion(){ret urn Math.r ound(100*( this.progr ess||0))+" %"},_hideA fterTimeou t:function (){var b=t his,a;this ._hideTime outId&&cle arTimeout( this._hide TimeoutId) ;if("numbe r"==typeof this.dura tion)a=thi s.duration ;else if(" info"==thi s.type||"s uccess"==t his.type)a ="number"= =typeof th is.editor. config.not ification_ duration?t his.editor .config.no tification _duration: | |||||
| 13 | 5E3;a&&(b. _hideTimeo utId=setTi meout(func tion(){b.h ide()},a)) }};functio n Area(b){ var a=this ;this.edit or=b;this. notificati ons=[];thi s.element= this._crea teElement( );this._ui Buffer=CKE DITOR.tool s.eventsBu ffer(10,th is._layout ,this);thi s._changeB uffer=CKED ITOR.tools .eventsBuf fer(500,th is._layout ,this);b.o n("destroy ",function (){a._remo veListener s();a.elem ent.remove ()})} | |||||
| 14 | Area.proto type={add: function(b ){this.not ifications .push(b);t his.elemen t.append(b .element); 1==this.el ement.getC hildCount( )&&(CKEDIT OR.documen t.getBody( ).append(t his.elemen t),this._a ttachListe ners());th is._layout ()},remove :function( b){var a=C KEDITOR.to ols.indexO f(this.not ifications ,b);0>a||( this.notif ications.s plice(a,1) ,b.element .remove(), this.eleme nt.getChil dCount()|| (this._rem oveListene rs(),this. element.re move()))}, _createEle ment:funct ion(){var b=this.edi tor,a=b.co nfig,c=new CKEDITOR. dom.elemen t("div"); | |||||
| 15 | c.addClass ("cke_noti fications_ area");c.s etAttribut e("id","ck e_notifica tions_area _"+b.name) ;c.setStyl e("z-index ",a.baseFl oatZIndex- 2);return c},_attach Listeners: function() {var b=CKE DITOR.docu ment.getWi ndow(),a=t his.editor ;b.on("scr oll",this. _uiBuffer. input);b.o n("resize" ,this._uiB uffer.inpu t);a.on("c hange",thi s._changeB uffer.inpu t);a.on("f loatingSpa ceLayout", this._layo ut,this,nu ll,20);a.o n("blur",t his._layou t,this,nul l,20)},_re moveListen ers:functi on(){var b =CKEDITOR. document.g etWindow() ,a=this.ed itor; | |||||
| 16 | b.removeLi stener("sc roll",this ._uiBuffer .input);b. removeList ener("resi ze",this._ uiBuffer.i nput);a.re moveListen er("change ",this._ch angeBuffer .input);a. removeList ener("floa tingSpaceL ayout",thi s._layout) ;a.removeL istener("b lur",this. _layout)}, _layout:fu nction(){f unction b( ){a.setSty le("left", k(n+d.widt h-f-h))}va r a=this.e lement,c=t his.editor ,d=c.ui.co ntentsElem ent.getCli entRect(), e=c.ui.con tentsEleme nt.getDocu mentPositi on(),c=c.u i.space("t op"),g=c.g etClientRe ct(),m=a.g etClientRe ct(),l,f=t his._notif icationWid th, | |||||
| 17 | h=this._no tification Margin;l=C KEDITOR.do cument.get Window();v ar p=l.get ScrollPosi tion(),q=l .getViewPa neSize(),r =CKEDITOR. document.g etBody(),t =r.getDocu mentPositi on(),k=CKE DITOR.tool s.cssLengt h;f&&h||(l =this.elem ent.getChi ld(0),f=th is._notifi cationWidt h=l.getCli entRect(). width,h=th is._notifi cationMarg in=parseIn t(l.getCom putedStyle ("margin-l eft"),10)+ parseInt(l .getComput edStyle("m argin-righ t"),10));c .isVisible ()&&g.bott om>d.top&& g.bottom<d .bottom-m. height?a.s etStyles({ position:" fixed",top :k(g.botto m)}): | |||||
| 18 | 0<d.top?a. setStyles( {position: "absolute" ,top:k(e.y )}):e.y+d. height-m.h eight>p.y? a.setStyle s({positio n:"fixed", top:0}):a. setStyles( {position: "absolute" ,top:k(e.y +d.height- m.height)} );var n="f ixed"==a.g etStyle("p osition")? d.left:"st atic"!=r.g etComputed Style("pos ition")?e. x-t.x:e.x; d.width<f+ h?e.x+f+h> p.x+q.widt h?b():a.se tStyle("le ft",k(n)): e.x+f+h>p. x+q.width? a.setStyle ("left",k( n)):e.x+d. width/2+f/ 2+h>p.x+q. width?a.se tStyle("le ft",k(n-e. x+p.x+q.wi dth-f-h)): 0>d.left+d .width-f-h ?b():0>d.l eft+d.widt h/ | |||||
| 19 | 2-f/2?a.se tStyle("le ft",k(n-e. x+p.x)):a. setStyle(" left",k(n+ d.width/2- f/2-h/2))} };CKEDITOR .plugins.n otificatio n=Notifica tion; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.