Changeset 309 for trunk


Ignore:
Timestamp:
Feb 1, 2010, 11:59:57 AM (15 years ago)
Author:
gav
Message:

Change asset tree taglib Ajax.Request to asynchronous: false.

File:
1 edited

Legend:

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

    r307 r309  
    88
    99function hideAssetTreePane(paneDivId, tableDivId, saveUrl) {
    10 
    11     // Hide the pane.
    12     $(paneDivId).toggle();
    1310
    1411    var visibleDivs = $(tableDivId).select('div').findAll(function(el) { return el.visible(); })
     
    2522
    2623    // Post the id's of all visible divs.
    27     new Ajax.Request(saveUrl, {parameters: params});
     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();
    2829}
    2930
Note: See TracChangeset for help on using the changeset viewer.