Changeset 3905


Ignore:
Timestamp:
Oct 21, 2010, 8:56:01 AM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #711. Using + and - icons for fieldset toggling.

Location:
trunk/client/servlet
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/gui/web/GUIConverter.java

    r3897 r3905  
    12511251    {
    12521252        Fieldset fieldset;
    1253         Tag legend, title, fields, table, row, helpC, input, btn;       
     1253        Tag legend, title, fields, table, row, helpC, input;
     1254    Img btn;
    12541255        String subtitle;
    12551256        org.proteios.gui.form.Field field;
     
    12631264    {
    12641265        legend.setOnClick("toggleFieldset('" + id + "')");   
    1265       btn = new Div();
     1266      btn = new Img();
    12661267          btn.addClass("toggle");
    12671268      btn.setId(btnId);
    12681269      legend.add(btn);
    1269       btn.newCData( fs.isOpen() ? "-" : "+");
     1270      btn.setSrc(fs.isOpen() ? "static/img/minus.gif" : "static/img/plus.gif");
    12701271    }
    12711272
  • trunk/client/servlet/www/static/css/layout2.jsp

    r3894 r3905  
    230230}
    231231
    232 div.form form div.legend div.toggle
     232div.form form div.legend img.toggle
    233233{
    234234    float: left;
    235     width: 10px;
    236235    border: 0px;
     236    margin-top: 1px;
    237237}
    238238
  • trunk/client/servlet/www/static/js/script.js

    r3894 r3905  
    128128  {
    129129    node.style.display = "none";
    130     icon.innerHTML = "+";
     130    icon.src = "static/img/plus.gif";
    131131  }
    132132  else
    133133  {
    134134    node.style.display = "block";
    135     icon.innerHTML = "-";
     135    icon.src = "static/img/minus.gif";
    136136  }
    137137}
Note: See TracChangeset for help on using the changeset viewer.