witten
/
luminotes
Archived
1
0
Fork 0

Now displaying "saving" status text on HTTP POST and "loading" status on GET.

This commit is contained in:
Dan Helfman 2008-07-29 15:37:12 -07:00
parent 622d872c47
commit c04b888646
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,12 @@ Invoker.prototype.invoke = function ( url, http_type, args, callback, form, sync
if ( !fire_and_forget ) {
if ( this.pending_count == 0 ) {
var loading = createDOM( "span", { "class": "status_text" }, "loading" );
if ( http_type == 'POST' )
var status_text = "saving"
else
var status_text = "loading"
var loading = createDOM( "span", { "class": "status_text" }, status_text );
replaceChildNodes( "status_area", loading );
}
this.pending_count += 1;