Changeset 306 for trunk/web-app/js
- Timestamp:
- Jan 31, 2010, 10:38:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/overlayPane.js
r278 r306 1 function toggleBranch(divId, imageId) { 1 function toggleDiv(id) { 2 $(divId).toggle(); 3 } 4 5 function showDiv(id) { 6 Effect.Appear(id,{duration:0.4,queue:'end'}); 7 } 8 9 function toggleBranch(divId, imageId, openImgUrl, closedImgUrl) { 2 10 3 11 $(divId).toggle(); 4 12 5 13 if( $(divId).visible() ) { 6 $(imageId).src= '../images/skin/bullet_tree_minus.png';14 $(imageId).src= openImgUrl; 7 15 } 8 16 else { 9 $(imageId).src= '../images/skin/bullet_tree_plus.png';17 $(imageId).src= closedImgUrl; 10 18 } 11 19 … … 17 25 if (typeof Effect != "undefined" && typeof Effect.Appear != "undefined") { 18 26 if ($(id) && Element.visible(id) == false) 19 Effect.Appear(id,{duration:0. 5,queue:'end'});27 Effect.Appear(id,{duration:0.4,queue:'end'}); 20 28 } else { 21 29 var el = document.getElementById(id) … … 31 39 if (typeof Effect != "undefined" && typeof Effect.Fade != "undefined") { 32 40 if ($(id) && Element.visible(id)) 33 Effect.Fade(id,{duration:0. 5,queue:'end'});41 Effect.Fade(id,{duration:0.4,queue:'end'}); 34 42 } else { 35 43 var el = document.getElementById(id)
Note: See TracChangeset
for help on using the changeset viewer.