AssetManager now times out after 30 seconds on the AJAX call to load assets. This will help people realize they are having network issues.

This commit is contained in:
Kaleb Murphy 2008-09-19 16:51:39 +00:00
parent 8bfce39f21
commit fba02ac784
2 changed files with 3 additions and 1 deletions

View file

@ -76,6 +76,7 @@
- fixed: Asset manager now sets "proceed" so we go back to asset manager after editing an asset
- rfe: Registration form to keep user entries on error - required and errored fields are now highlighted.
- added: Thingy view template now has access to field_dateCreated and field_lastUpdated for Things.
- added: AssetManager now times out after 30 seconds on the AJAX call to load assets. This will help people realize they are having network issues.
7.5.22
- fixed: Layout template now gets prepared correctly

View file

@ -308,6 +308,7 @@ sub www_ajaxGetManagerPage {
$assetInfo->{ dir } = lc $session->form->get( 'orderByDirection' );
$session->http->setMimeType( 'application/json' );
return encode_json( $assetInfo );
}
@ -544,7 +545,7 @@ ENDHTML
$output .= <<"ENDJS";
// Start the data source
WebGUI.AssetManager.DataSource
= new YAHOO.util.DataSource( '?op=assetManager;method=ajaxGetManagerPage' );
= new YAHOO.util.DataSource( '?op=assetManager;method=ajaxGetManagerPage',{connTimeout:30000} );
WebGUI.AssetManager.DataSource.responseType
= YAHOO.util.DataSource.TYPE_JSON;
WebGUI.AssetManager.DataSource.responseSchema