628. File Comparison Report

Produced on Mon May 12 13:06:30 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

628.1 Files compared

# Location File Last Modified
1 Mon May 12 13:06:30 2008 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\themes\advanced\js link.js Thu Mar 27 13:53:28 2008 UTC

628.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 126
Removed 0 0

628.3 Comparison options

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

628.4 Active regular expressions

No regular expressions were active.

628.5 Comparison detail

    1   tinyMCEPop up.require LangPack() ;
    2  
    3   var LinkDi alog = {
    4       preIni t : functi on() {
    5           va r url;
    6  
    7           if  (url = ti nyMCEPopup .getParam( "external_ link_list_ url"))
    8                document .write('<s cript lang uage="java script" ty pe="text/j avascript"  src="' +  tinyMCEPop up.editor. documentBa seURI.toAb solute(url ) + '"></s cript>');
    9       },
    10  
    11       init :  function( ) {
    12           va r f = docu ment.forms [0], ed =  tinyMCEPop up.editor;
    13  
    14           //  Setup bro wse button
    15           do cument.get ElementByI d('hrefbro wsercontai ner').inne rHTML = ge tBrowserHT ML('hrefbr owser', 'h ref', 'fil e', 'theme _advanced_ link');
    16           if  (isVisibl e('hrefbro wser'))
    17                document .getElemen tById('hre f').style. width = '1 80px';
    18  
    19           th is.fillCla ssList('cl ass_list') ;
    20           th is.fillFil eList('lin k_list', ' tinyMCELin kList');
    21           th is.fillTar getList('t arget_list ');
    22  
    23           if  (e = ed.d om.getPare nt(ed.sele ction.getN ode(), 'A' )) {
    24                f.href.v alue = ed. dom.getAtt rib(e, 'hr ef');
    25                f.linkti tle.value  = ed.dom.g etAttrib(e , 'title') ;
    26                f.insert .value = e d.getLang( 'update');
    27                selectBy Value(f, ' link_list' , f.href.v alue);
    28                selectBy Value(f, ' target_lis t', ed.dom .getAttrib (e, 'targe t'));
    29                selectBy Value(f, ' class_list ', ed.dom. getAttrib( e, 'class' ));
    30           }
    31       },
    32  
    33       update  : functio n() {
    34           va r f = docu ment.forms [0], ed =  tinyMCEPop up.editor,  e, b;
    35  
    36           ti nyMCEPopup .restoreSe lection();
    37  
    38           //  Remove el ement if t here is no  href
    39           if  (!f.href. value) {
    40                e = ed.d om.getPare nt(ed.sele ction.getN ode(), 'A' );
    41                if (e) {
    42                    tiny MCEPopup.e xecCommand ("mceBegin UndoLevel" );
    43                    b =  ed.selecti on.getBook mark();
    44                    ed.d om.remove( e, 1);
    45                    ed.s election.m oveToBookm ark(b);
    46                    tiny MCEPopup.e xecCommand ("mceEndUn doLevel");
    47                    tiny MCEPopup.c lose();
    48                    retu rn;
    49                }
    50           }
    51  
    52           ed .execComma nd('mceIns ertLink',  false, {
    53                href : f .href.valu e,
    54                title :  f.linktitl e.value,
    55                target :  f.target_ list ? f.t arget_list .options[f .target_li st.selecte dIndex].va lue : null ,
    56                'class'  : f.class_ list ? f.c lass_list. options[f. class_list .selectedI ndex].valu e : null
    57           }) ;
    58  
    59           ti nyMCEPopup .close();
    60       },
    61  
    62       checkP refix : fu nction(n)  {
    63           if  (n.value  && Validat or.isEmail (n) && !/^ \s*mailto: /i.test(n. value) &&  confirm(ti nyMCEPopup .getLang(' advanced_d lg.link_is _email')))
    64                n.value  = 'mailto: ' + n.valu e;
    65  
    66           if  (/^\s*www ./i.test(n .value) &&  confirm(t inyMCEPopu p.getLang( 'advanced_ dlg.link_i s_external ')))
    67                n.value  = 'http:// ' + n.valu e;
    68       },
    69  
    70       fillFi leList : f unction(id , l) {
    71           va r dom = ti nyMCEPopup .dom, lst  = dom.get( id), v, cl ;
    72  
    73           l  = window[l ];
    74  
    75           if  (l && l.l ength > 0)  {
    76                lst.opti ons[lst.op tions.leng th] = new  Option('',  '');
    77  
    78                tinymce. each(l, fu nction(o)  {
    79                    lst. options[ls t.options. length] =  new Option (o[0], o[1 ]);
    80                });
    81           }  else
    82                dom.remo ve(dom.get Parent(id,  'tr'));
    83       },
    84  
    85       fillCl assList :  function(i d) {
    86           va r dom = ti nyMCEPopup .dom, lst  = dom.get( id), v, cl ;
    87  
    88           if  (v = tiny MCEPopup.g etParam('t heme_advan ced_styles ')) {
    89                cl = [];
    90  
    91                tinymce. each(v.spl it(';'), f unction(v)  {
    92                    var  p = v.spli t('=');
    93  
    94                    cl.p ush({'titl e' : p[0],  'class' :  p[1]});
    95                });
    96           }  else
    97                cl = tin yMCEPopup. editor.dom .getClasse s();
    98  
    99           if  (cl.lengt h > 0) {
    100                lst.opti ons[lst.op tions.leng th] = new  Option(tin yMCEPopup. getLang('n ot_set'),  '');
    101  
    102                tinymce. each(cl, f unction(o)  {
    103                    lst. options[ls t.options. length] =  new Option (o.title | | o['class '], o['cla ss']);
    104                });
    105           }  else
    106                dom.remo ve(dom.get Parent(id,  'tr'));
    107       },
    108  
    109       fillTa rgetList :  function( id) {
    110           va r dom = ti nyMCEPopup .dom, lst  = dom.get( id), v;
    111  
    112           ls t.options[ lst.option s.length]  = new Opti on(tinyMCE Popup.getL ang('not_s et'), '');
    113           ls t.options[ lst.option s.length]  = new Opti on(tinyMCE Popup.getL ang('advan ced_dlg.li nk_target_ same'), '_ self');
    114           ls t.options[ lst.option s.length]  = new Opti on(tinyMCE Popup.getL ang('advan ced_dlg.li nk_target_ blank'), ' _blank');
    115  
    116           if  (v = tiny MCEPopup.g etParam('t heme_advan ced_link_t argets'))  {
    117                tinymce. each(v.spl it(','), f unction(v)  {
    118                    v =  v.split('= ');
    119                    html  += '<opti on value=" ' + v[1] +  '">' + v[ 0] + '</op tion>';
    120                });
    121           }
    122       }
    123   };
    124  
    125   LinkDialog .preInit() ;
    126   tinyMCEPop up.onInit. add(LinkDi alog.init,  LinkDialo g);