Changeset 312 for trunk/web-app/js
- Timestamp:
- Feb 3, 2010, 1:32:19 PM (15 years ago)
- Location:
- trunk/web-app/js
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/overlayPane.js
r309 r312 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 hideAssetTreePane(paneDivId, tableDivId, saveUrl) {10 11 var visibleDivs = $(tableDivId).select('div').findAll(function(el) { return el.visible(); })12 var params = "assetTreeVisibleBranches=";13 14 // Add the id of each visible div.15 visibleDivs.each(function(it) {16 params += it.identify();17 params += ","18 });19 20 // Remove the trailing comma.21 params = params.slice(0,params.length-1);22 23 // Post the id's of all visible divs.24 // asynchronous: false is against the prototype recommendations but appears to be needed in this case.25 new Ajax.Request(saveUrl, {parameters: params, asynchronous: false});26 27 // Hide the pane.28 $(paneDivId).toggle();29 }30 31 function toggleBranch(divId, imageId, openImgUrl, closedImgUrl) {32 33 $(divId).toggle();34 35 if( $(divId).visible() ) {36 $(imageId).src= openImgUrl;37 }38 else {39 $(imageId).src= closedImgUrl;40 }41 42 }43 1 44 2 function showElement(id) {
Note: See TracChangeset
for help on using the changeset viewer.