Now displaying "saving" status text on HTTP POST and "loading" status on GET.
This commit is contained in:
parent
622d872c47
commit
c04b888646
|
@ -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;
|
||||
|
|
Reference in New Issue