Changeset 2271

Show
Ignore:
Timestamp:
06/02/07 12:37:44 (1 year ago)
Author:
eblot
Message:

RevtreePlugin:

Minor changes:

  • Replace hand-crafted Javascript with cleaner JQuery functions
  • Replace the loading animated icon with the one from Trac
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • revtreeplugin/0.11/revtree/htdocs/css/revtree.css

    r1916 r2271  
    99} 
    1010div.revtree p.message { 
    11    padding-left: 1ex; 
     11 padding-left: 1ex; 
    1212} 
    1313div.revprops { 
     
    2020} 
    2121div.revprops span.legend { 
    22    /*Seemms that legend tag cannot be selected, use span instead*/ 
    23        font-weight: bold; 
     22 /* Seemms that legend tag cannot be selected, use span instead*/ 
     23 font-weight: bold; 
    2424} 
    2525#treeoptions { 
    26    white-space: normal; 
    27    width: 13ex; 
    28    display: inline; 
     26 white-space: normal; 
     27 width: 13ex; 
     28 display: inline; 
    2929} 
    3030#treeoptions label { 
    31    margin-top: 0; 
    32    padding-left: 1ex; 
    33    text-align: right; 
     31 margin-top: 0; 
     32 padding-left: 1ex; 
     33 text-align: right; 
    3434} 
    3535#treestyle { 
    36    border-right: none; 
     36 border-right: none; 
    3737} 
    3838#treestyle div { 
    39    display: block; 
     39 display: block; 
    4040} 
    4141#settings { 
    42    /* FIXME */ 
    43    width: 100%; 
    44    margin-top: 0; 
    45    margin-left: 0; 
    46    margin-right: 0; 
    47    margin-bottom: 11em; 
     42 /* FIXME */ 
     43 width: 100%; 
     44 margin-top: 0; 
     45 margin-left: 0; 
     46 margin-right: 0; 
     47 margin-bottom: 11em; 
    4848} 
    4949#prefs { 
     
    7575 
    7676/* jTip */ 
    77 #JT_arrow_left
    78        background-image: url(../images/arrow_left.gif); 
    79        background-repeat: no-repeat; 
    80        background-position: left top; 
    81        position: absolute; 
    82        z-index:101; 
    83        left:-12px; 
    84        height:23px; 
    85        width:10px; 
    86     top:-3px; 
     77#JT_arrow_left
     78 background-image: url(../images/arrow_left.gif); 
     79 background-repeat: no-repeat; 
     80 background-position: left top; 
     81 position: absolute; 
     82 z-index:101; 
     83 left:-12px; 
     84 height:23px; 
     85 width:10px; 
     86 top:-3px; 
    8787} 
    88 #JT_arrow_right
    89        background-image: url(../images/arrow_right.gif); 
    90        background-repeat: no-repeat; 
    91        background-position: left top; 
    92        position: absolute; 
    93        z-index:101; 
    94        height:23px; 
    95        width:11px; 
    96    top:-2px; 
     88#JT_arrow_right
     89 background-image: url(../images/arrow_right.gif); 
     90 background-repeat: no-repeat; 
     91 background-position: left top; 
     92 position: absolute; 
     93 z-index:101; 
     94 height:23px; 
     95 width:11px; 
     96 top:-2px; 
    9797} 
    9898#JT { 
    99        position: absolute; 
    100        z-index:100; 
    101        border: 2px solid #CCCCCC; 
    102        background-color: #fff; 
     99 position: absolute; 
     100 z-index:100; 
     101 border: 2px solid #CCCCCC; 
     102 background-color: #fff; 
    103103} 
    104 #JT_copy
    105        padding:10px 10px 10px 10px; 
    106        color:#333333; 
     104#JT_copy
     105 padding:10px 10px 10px 10px; 
     106 color:#333333; 
    107107} 
    108 #JT_loader
    109        background-image: url(../images/loader.gif); 
    110        background-repeat: no-repeat; 
    111        background-position: center center; 
    112        width:100%; 
    113        height:12px; 
     108#JT_loader
     109 background-image: url(../images/loading.gif); 
     110 background-repeat: no-repeat; 
     111 background-position: left center; 
     112 width:100%; 
     113 height:18px; 
    114114} 
    115 #JT_close_left{ 
    116         background-color: #CCCCCC; 
    117         text-align: left; 
    118         padding-left: 8px; 
    119         padding-bottom: 5px; 
    120         padding-top: 2px; 
    121         font-weight:bold; 
     115#JT_loader #loading { 
     116 padding-left: 24px; 
    122117} 
    123 #JT_close_right
    124        background-color: #CCCCCC; 
    125        text-align: left; 
    126        padding-left: 8px; 
    127        padding-bottom: 5px; 
    128        padding-top: 2px; 
    129        font-weight:bold; 
     118#JT_close_left
     119 background-color: #CCCCCC; 
     120 text-align: left; 
     121 padding-left: 8px; 
     122 padding-bottom: 5px; 
     123 padding-top: 2px; 
     124 font-weight:bold; 
    130125} 
    131 #JT_copy p{ 
    132 margin:3px 0; 
     126#JT_close_right { 
     127 background-color: #CCCCCC; 
     128 text-align: left; 
     129 padding-left: 8px; 
     130 padding-bottom: 5px; 
     131 padding-top: 2px; 
     132 font-weight:bold; 
    133133} 
    134 #JT_copy img{ 
    135         padding: 1px; 
    136         border: 1px solid #CCCCCC; 
     134#JT_copy p { 
     135 margin:3px 0; 
    137136} 
     137#JT_copy img { 
     138 padding: 1px; 
     139 border: 1px solid #CCCCCC; 
     140} 
  • revtreeplugin/0.11/revtree/htdocs/js/svgtip.js

    r2111 r2271  
    4444  } 
    4545 
    46   var ns = "http://www.w3.org/1999/xhtml"; 
    47   var d0=document.createElementNS(ns,"div"); 
    48   d0.setAttribute("id","JT"); 
    49   d0.setAttribute("style", "width:"+params['width']*1+"px; " + 
    50                            "left:"+clickElementx+"px; " + 
    51                            "top:"+clickElementy+"px"); 
    52   var d1=document.createElementNS(ns,"div"); 
    53   d1.setAttribute("id","JT_arrow_"+side); 
    54   if ( side == 'right' ) { 
    55      d1.setAttribute("style", "left:"+((params['width']*1)+1)+"px"); 
    56   } 
    57   var d2=document.createElementNS(ns,"div"); 
    58   d2.setAttribute("id","JT_close_"+side); 
    59   d2.appendChild(document.createTextNode(title)); 
    60   var d3=document.createElementNS(ns,"div"); 
    61   d3.setAttribute("id","JT_copy"); 
    62   var d4=document.createElementNS(ns,"div"); 
    63   d4.setAttribute("id","JT_loader"); 
    64   d3.appendChild(d4); 
    65   d0.appendChild(d1); 
    66   d0.appendChild(d2); 
    67   d0.appendChild(d3); 
    68  
    69   document.getElementsByTagName('body')[0].appendChild(d0); 
    70  
    71   $('#JT').show(); 
     46  $('body').append('<div id="JT" style="width:'+params['width']*1+'px; '+ 
     47                                       'left:'+clickElementx+'px; ' + 
     48                                       'top:'+clickElementy+'px;"></div>'); 
     49  var style=''; 
     50  if (side=='right'){style='style="left:'+((params['width']*1)+1)+'px;"'} 
     51  $('#JT').append('<div id="JT_arrow_'+side+'" '+style+'></div>' + 
     52                  '<div id="JT_close_'+side+'" >'+title+'</div>' + 
     53                  '<div id="JT_copy" ><div id="JT_loader">' + 
     54                  '<span id="loading">loading changeset&#8230;</span>' + 
     55                  '</div></div>'); 
     56  $('#JT').show();   
    7257  $('#JT_copy').load(logurl); 
    7358} 
  • revtreeplugin/0.11/setup.py

    r2178 r2271  
    1616 
    1717PACKAGE = 'TracRevtreePlugin' 
    18 VERSION = '0.5.1.3
     18VERSION = '0.5.2
    1919 
    2020setup (