532. File Comparison Report

Produced on Mon May 12 13:06:18 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.

532.1 Files compared

# Location File Last Modified
1 Mon May 12 13:06:18 2008 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\plugins\searchreplace\js searchreplace.js Thu Mar 27 13:53:26 2008 UTC

532.2 Comparison summary

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

532.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

532.4 Active regular expressions

No regular expressions were active.

532.5 Comparison detail

    1   tinyMCEPop up.require LangPack() ;
    2  
    3   var Search ReplaceDia log = {
    4       init :  function( ed) {
    5           va r f = docu ment.forms [0], m = t inyMCEPopu p.getWindo wArg("mode ");
    6  
    7           th is.switchM ode(m);
    8  
    9           f[ m + '_pane l_searchst ring'].val ue = tinyM CEPopup.ge tWindowArg ("search_s tring");
    10  
    11           //  Focus inp ut field
    12           f[ m + '_pane l_searchst ring'].foc us();
    13       },
    14  
    15       switch Mode : fun ction(m) {
    16           va r f, lm =  this.lastM ode;
    17  
    18           if  (lm != m)  {
    19                f = docu ment.forms [0];
    20  
    21                if (lm)  {
    22                    f[m  + '_panel_ searchstri ng'].value  = f[lm +  '_panel_se archstring '].value;
    23                    f[m  + '_panel_ backwardsu '].checked  = f[lm +  '_panel_ba ckwardsu'] .checked;
    24                    f[m  + '_panel_ backwardsd '].checked  = f[lm +  '_panel_ba ckwardsd'] .checked;
    25                    f[m  + '_panel_ casesensit ivebox'].c hecked = f [lm + '_pa nel_casese nsitivebox '].checked ;
    26                }
    27  
    28                mcTabs.d isplayTab( m + '_tab' ,  m + '_p anel');
    29                document .getElemen tById("rep laceBtn"). style.disp lay = (m = = "replace ") ? "inli ne" : "non e";
    30                document .getElemen tById("rep laceAllBtn ").style.d isplay = ( m == "repl ace") ? "i nline" : " none";
    31                this.las tMode = m;
    32           }
    33       },
    34  
    35       search Next : fun ction(a) {
    36           va r ed = tin yMCEPopup. editor, se  = ed.sele ction, r =  se.getRng (), f, m =  this.last Mode, s, b , fl = 0,  w = ed.get Win(), wm  = ed.windo wManager,  fo = 0;
    37  
    38           //  Get input
    39           f  = document .forms[0];
    40           s  = f[m + '_ panel_sear chstring'] .value;
    41           b  = f[m + '_ panel_back wardsu'].c hecked;
    42           ca  = f[m + ' _panel_cas esensitive box'].chec ked;
    43           rs  = f['repl ace_panel_ replacestr ing'].valu e;
    44  
    45           fu nction fix () {
    46                // Corre ct Firefox  graphics  glitches
    47                r = se.g etRng().cl oneRange() ;
    48                ed.getDo c().execCo mmand('Sel ectAll', f alse, null );
    49                se.setRn g(r);
    50           };
    51  
    52           fu nction rep lace() {
    53                if (tiny mce.isIE)
    54                    ed.s election.g etRng().du plicate(). pasteHTML( rs); // Ne eds to be  duplicated  due to se lection bu g in IE
    55                else
    56                    ed.g etDoc().ex ecCommand( 'InsertHTM L', false,  rs);
    57           };
    58  
    59           //  IE flags
    60           if  (ca)
    61                fl = fl  | 4;
    62  
    63           sw itch (a) {
    64                case 'al l':
    65                    if ( tinymce.is IE) {
    66                         while (r.f indText(s,  b ? -1 :  1, fl)) {
    67                             r.scro llIntoView ();
    68                             r.sele ct();
    69                             replac e();
    70                             fo = 1 ;
    71                         }
    72  
    73                         tinyMCEPop up.storeSe lection();
    74                    } el se {
    75                         while (w.f ind(s, ca,  b, false,  false, fa lse, false )) {
    76                             replac e();
    77                             fo = 1 ;
    78                         }
    79                    }
    80  
    81                    if ( fo)
    82                         wm.alert(e d.getLang( 'searchrep lace_dlg.a llreplaced '));
    83                    else
    84                         wm.alert(e d.getLang( 'searchrep lace_dlg.n otfound')) ;
    85  
    86                    retu rn;
    87  
    88                case 'cu rrent':
    89                    repl ace();
    90                    brea k;
    91           }
    92  
    93           se .collapse( b);
    94           r  = se.getRn g();
    95  
    96           //  Whats the  point
    97           if  (!s)
    98                return;
    99  
    100           if  (tinymce. isIE) {
    101                if (r.fi ndText(s,  b ? -1 : 1 , fl)) {
    102                    r.sc rollIntoVi ew();
    103                    r.se lect();
    104                } else
    105                    wm.a lert(ed.ge tLang('sea rchreplace _dlg.notfo und'));
    106  
    107                tinyMCEP opup.store Selection( );
    108           }  else {
    109                if (!w.f ind(s, ca,  b, false,  false, fa lse, false ))
    110                    wm.a lert(ed.ge tLang('sea rchreplace _dlg.notfo und'));
    111                else
    112                    fix( );
    113           }
    114       }
    115   };
    116  
    117   tinyMCEPop up.onInit. add(Search ReplaceDia log.init,  SearchRepl aceDialog) ;