Changeset 307 for trunk/web-app/js
- Timestamp:
- Feb 1, 2010, 7:56:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/overlayPane.js
r306 r307 1 1 function toggleDiv(id) { 2 2 $(divId).toggle(); 3 3 } 4 4 5 5 function showDiv(id) { 6 Effect.Appear(id,{duration:0.4,queue:'end'}); 6 Effect.Appear(id,{duration:0.4,queue:'end'}); 7 } 8 9 function hideAssetTreePane(paneDivId, tableDivId, saveUrl) { 10 11 // Hide the pane. 12 $(paneDivId).toggle(); 13 14 var visibleDivs = $(tableDivId).select('div').findAll(function(el) { return el.visible(); }) 15 var params = "assetTreeVisibleBranches="; 16 17 // Add the id of each visible div. 18 visibleDivs.each(function(it) { 19 params += it.identify(); 20 params += "," 21 }); 22 23 // Remove the trailing comma. 24 params = params.slice(0,params.length-1); 25 26 // Post the id's of all visible divs. 27 new Ajax.Request(saveUrl, {parameters: params}); 7 28 } 8 29 9 30 function toggleBranch(divId, imageId, openImgUrl, closedImgUrl) { 10 31 11 32 $(divId).toggle(); 12 33 13 14 15 16 17 18 34 if( $(divId).visible() ) { 35 $(imageId).src= openImgUrl; 36 } 37 else { 38 $(imageId).src= closedImgUrl; 39 } 19 40 20 // return false;21 41 } 22 42
Note: See TracChangeset
for help on using the changeset viewer.