Changeset 568 for trunk/web-app


Ignore:
Timestamp:
Jun 4, 2010, 11:45:14 PM (14 years ago)
Author:
gav
Message:

JavaScript? util improvements, added toggleWithEffectUtil() and useDiv option to toggleControl taglib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/jsUtil.js

    r358 r568  
    2424}
    2525
     26function toggleWithEffectUtil(id) {
     27    if( $(id).visible() ) {
     28        Effect.Fade(id,{duration:0.4,queue:'end'});
     29    }
     30    else {
     31        Effect.Appear(id,{duration:0.4,queue:'end'});
     32    }
     33}
     34
    2635function toggleWithImgAndEffectUtil(id, imageId, openImgUrl, closedImgUrl) {
    2736
Note: See TracChangeset for help on using the changeset viewer.