Changeset 4057

Show
Ignore:
Timestamp:
07/24/08 05:50:20 (4 months ago)
Author:
e2jk
Message:

Implementing #3441 (Hide the checkboxes by default)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ticketmodifiedfilesplugin/0.11/setup.py

    r4040 r4057  
    44    name='TicketModifiedFiles', 
    55    description='Trac plugin that lists the files that have been modified while resolving a ticket.', 
    6     version='0.8', 
     6    version='0.8.1', 
    77    license='BSD-ish (see the COPYING.txt file)', 
    88    author='Emilien Klein', 
  • ticketmodifiedfilesplugin/0.11/ticketmodifiedfiles/htdocs/css/ticketmodifiedfiles.css

    r4040 r4057  
    1515    float: left; 
    1616    margin-right: .5em; 
     17    display: none; 
    1718} 
    1819 
     
    2223 
    2324#legendsection{ 
    24         font-size: 80%; 
     25    margin-top: 20px; 
     26    font-size: 80%; 
    2527} 
    2628 
  • ticketmodifiedfilesplugin/0.11/ticketmodifiedfiles/htdocs/js/ticketmodifiedfiles.js

    r4036 r4057  
    1010                    } 
    1111                } 
     12        if(element == "checkboxes"){ 
     13            inputs = document.getElementsByTagName("input"); 
     14            actualvisibility = ""; 
     15            for(j=0; j<inputs.length; j++){ 
     16                if(inputs[j].getAttribute('class') == "helpcheckbox"){ 
     17                    if(inputs[j].style.display == "block"){ 
     18                        inputs[j].style.display = "none"; 
     19                    } else { 
     20                        inputs[j].style.display = "block"; 
     21                    } 
     22                    actualvisibility = inputs[j].style.display; 
     23                } 
     24            } 
     25            if(actualvisibility == "block"){ 
     26                document.getElementById("togglecheckboxlink").innerHTML = "Hide the checkboxes"; 
     27            } else { 
     28                document.getElementById("togglecheckboxlink").innerHTML = "Display the checkboxes"; 
     29            } 
     30        } 
    1231        } 
    1332//--> 
  • ticketmodifiedfilesplugin/0.11/ticketmodifiedfiles/templates/ticketmodifiedfiles.html

    r4054 r4057  
    8383           
    8484          <div id="legendsection"> 
     85            <div><a id="togglecheckboxlink" href="#" onclick="javascript:togglevisibility('checkboxes'); return false;" title="Can be helpful to for instance track which files have already been uploaded">Display the checkboxes</a></div> 
    8586            <strong>Legend:</strong> 
    8687            <py:choose><py:when test="'E' in filestatus.values()"><span class="edit">&nbsp;</span><span class="legendinfo">Edited</span></py:when></py:choose> 
     
    9293           
    9394          <div id="changesetslist"> 
    94             <h3 class="backtonormalflow"><a id="changesetslink" href="javascript:togglevisibility('listofchangesets');">Display the list of changesets relative to this ticket.</a></h3> 
     95            <h3 class="backtonormalflow"><a id="changesetslink" href="#" onclick="javascript:togglevisibility('listofchangesets'); return false;">Display the list of changesets relative to this ticket.</a></h3> 
    9596            <dl id="listofchangesets"> 
    9697            <py:for each="rev, author in revisions">