Changeset 322 for trunk/web-app
- Timestamp:
- Feb 8, 2010, 2:51:23 AM (15 years ago)
- Location:
- trunk/web-app/js
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/assetTree.js
r316 r322 4 4 Effect.Appear(paneDivId,{duration:0.4}); 5 5 6 // Pulsing loadingImg blocks the default grails animated giftill complete.7 // After which the default will show as normal.8 new Effect.Pulsate($(loadingImg), { pulses: 200, duration: 133 });6 // Disabled since pulsing effect blocks other javascript till complete. 7 // The effect may be stopped with e.cancel() but we will use the default Grails spinner for now. 8 // def e = new Effect.Pulsate($(loadingImg), { pulses: 200, duration: 133 }); 9 9 10 // The updater is only called once per page refresh.11 10 new Ajax.Updater({ success: paneDivId }, url, {asynchronous:true,evalScripts:true}); 12 11 } … … 34 33 new Ajax.Request(saveUrl, {parameters: params, asynchronous: false}); 35 34 } 36 37 function toggleBranch(divId, imageId, openImgUrl, closedImgUrl) {38 39 $(divId).toggle();40 41 if( $(divId).visible() ) {42 $(imageId).src= openImgUrl;43 }44 else {45 $(imageId).src= closedImgUrl;46 }47 48 } -
trunk/web-app/js/jsUtil.js
r314 r322 2 2 function toggleUtil(id) { 3 3 $(id).toggle(); 4 } 5 6 function toggleWithImgUtil(id, imageId, openImgUrl, closedImgUrl) { 7 8 $(id).toggle(); 9 10 if( $(id).visible() ) { 11 $(imageId).src= openImgUrl; 12 } 13 else { 14 $(imageId).src= closedImgUrl; 15 } 4 16 } 5 17
Note: See TracChangeset
for help on using the changeset viewer.