- Timestamp:
- Feb 5, 2010, 9:39:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/assetTree.js
r312 r316 1 1 2 2 function showAssetTreePane(paneDivId, loadingImg, url) { 3 3 4 Effect.Appear(paneDivId,{duration:0.4}); 5 6 // Pulsing loadingImg blocks the default grails animated gif till complete. 7 // After which the default will show as normal. 4 8 new Effect.Pulsate($(loadingImg), { pulses: 200, duration: 133 }); 9 10 // The updater is only called once per page refresh. 5 11 new Ajax.Updater({ success: paneDivId }, url, {asynchronous:true,evalScripts:true}); 6 12 } … … 8 14 function hideAssetTreePane(paneDivId, tableDivId, saveUrl) { 9 15 10 // Collect the visible div's first.16 // Collect the visible branch div's first. 11 17 var visibleDivs = $(tableDivId).select('div').findAll(function(el) { return el.visible(); }) 12 18 var params = "assetTreeVisibleBranches="; … … 24 30 params = params.slice(0,params.length-1); 25 31 26 // Post the id's of all visible divs.32 // Post the id's of all visible branch div's. 27 33 // asynchronous: false is against the prototype recommendations but appears to be needed in this case. 28 34 new Ajax.Request(saveUrl, {parameters: params, asynchronous: false});
Note: See TracChangeset
for help on using the changeset viewer.