Changeset 307 for trunk/web-app
- Timestamp:
- Feb 1, 2010, 7:56:41 AM (15 years ago)
- Location:
- trunk/web-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/css/main.css
r306 r307 585 585 586 586 div.tree_button { 587 text-align: left; 588 padding-top: 4px; 589 } 587 float: left; 588 } 589 div.tree_button a { 590 } 591 div.tree_button img { 592 padding: 0.3em 0.5em 0 0.3em; 593 } 594 div.tree_button img:hover { 595 padding: 0.5em 0.5em 0 0.3em; 596 } 597 590 598 div.tree { 591 599 } -
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.