Changeset 323 for trunk/web-app


Ignore:
Timestamp:
Feb 8, 2010, 3:23:01 AM (15 years ago)
Author:
gav
Message:

Add toggleWithImgAndEffect to JsUtil.
Replace control divs with our new JsUtil toggleControl taglib.
Small CSS adjustment to asset tree pane close.

Location:
trunk/web-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/css/main.css

    r312 r323  
    610610}
    611611div.tree_pane_close {
    612     float: right;
     612    position: absolute;
     613    right: 5px;
    613614    padding: 5px;
    614615}
  • trunk/web-app/js/jsUtil.js

    r322 r323  
    2323    Effect.Fade(id,{duration:0.4,queue:'end'});
    2424}
     25
     26function toggleWithImgAndEffectUtil(id, imageId, openImgUrl, closedImgUrl) {
     27
     28    if( $(id).visible() ) {
     29        Effect.Fade(id,{duration:0.4,queue:'end'});
     30        $(imageId).src= closedImgUrl;
     31    }
     32    else {
     33        Effect.Appear(id,{duration:0.4,queue:'end'});
     34        $(imageId).src= openImgUrl;
     35    }
     36}
Note: See TracChangeset for help on using the changeset viewer.