Changeset 316


Ignore:
Timestamp:
Feb 5, 2010, 9:39:58 AM (15 years ago)
Author:
gav
Message:

Some comments to assetTree.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/assetTree.js

    r312 r316  
    11
    22function showAssetTreePane(paneDivId, loadingImg, url) {
     3
    34    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.
    48    new Effect.Pulsate($(loadingImg), { pulses: 200, duration: 133 });
     9
     10    // The updater is only called once per page refresh.
    511    new Ajax.Updater({ success: paneDivId }, url, {asynchronous:true,evalScripts:true});
    612}
     
    814function hideAssetTreePane(paneDivId, tableDivId, saveUrl) {
    915
    10     // Collect the visible div's first.
     16    // Collect the visible branch div's first.
    1117    var visibleDivs = $(tableDivId).select('div').findAll(function(el) { return el.visible(); })
    1218    var params = "assetTreeVisibleBranches=";
     
    2430    params = params.slice(0,params.length-1);
    2531
    26     // Post the id's of all visible divs.
     32    // Post the id's of all visible branch div's.
    2733    // asynchronous: false is against the prototype recommendations but appears to be needed in this case.
    2834    new Ajax.Request(saveUrl, {parameters: params, asynchronous: false});
Note: See TracChangeset for help on using the changeset viewer.