Ignore:
Timestamp:
Jan 31, 2010, 10:38:12 AM (14 years ago)
Author:
gav
Message:

Move asset tree/overview to an overlay pane.

File:
1 edited

Legend:

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

    r278 r306  
    1 function toggleBranch(divId, imageId) {
     1function toggleDiv(id) {
     2            $(divId).toggle();
     3}
     4
     5function showDiv(id) {
     6            Effect.Appear(id,{duration:0.4,queue:'end'});
     7}
     8
     9function toggleBranch(divId, imageId, openImgUrl, closedImgUrl) {
    210
    311        $(divId).toggle();
    412
    513        if( $(divId).visible() ) {
    6             $(imageId).src= '../images/skin/bullet_tree_minus.png';
     14            $(imageId).src= openImgUrl;
    715        }
    816        else {
    9             $(imageId).src= '../images/skin/bullet_tree_plus.png';
     17            $(imageId).src= closedImgUrl;
    1018        }
    1119
     
    1725        if (typeof Effect != "undefined" && typeof Effect.Appear != "undefined") {
    1826                    if ($(id) && Element.visible(id) == false)
    19             Effect.Appear(id,{duration:0.5,queue:'end'});
     27            Effect.Appear(id,{duration:0.4,queue:'end'});
    2028        } else {
    2129            var el = document.getElementById(id)
     
    3139    if (typeof Effect != "undefined" && typeof Effect.Fade != "undefined") {
    3240            if ($(id) && Element.visible(id))
    33         Effect.Fade(id,{duration:0.5,queue:'end'});
     41        Effect.Fade(id,{duration:0.4,queue:'end'});
    3442    } else {
    3543        var el = document.getElementById(id)
Note: See TracChangeset for help on using the changeset viewer.