mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
Make sure we can submit before setting the loading prompt
This commit is contained in:
parent
eb286c6144
commit
797d396a4a
@ -732,11 +732,6 @@ etemplate2.prototype.submit = function(button, async, no_validation, _container)
|
|||||||
{
|
{
|
||||||
var api = this.widgetContainer.egw();
|
var api = this.widgetContainer.egw();
|
||||||
|
|
||||||
if (typeof async == 'undefined' || typeof async == 'string')
|
|
||||||
{
|
|
||||||
api.loading_prompt('et2_submit_spinner', true, api.lang(typeof async == 'string' ? async : 'Please wait...'));
|
|
||||||
async = true;
|
|
||||||
}
|
|
||||||
if(typeof no_validation == 'undefined')
|
if(typeof no_validation == 'undefined')
|
||||||
{
|
{
|
||||||
no_validation = false;
|
no_validation = false;
|
||||||
@ -760,6 +755,11 @@ etemplate2.prototype.submit = function(button, async, no_validation, _container)
|
|||||||
|
|
||||||
if (canSubmit)
|
if (canSubmit)
|
||||||
{
|
{
|
||||||
|
if (typeof async == 'undefined' || typeof async == 'string')
|
||||||
|
{
|
||||||
|
api.loading_prompt('et2_submit_spinner', true, api.lang(typeof async == 'string' ? async : 'Please wait...'));
|
||||||
|
async = true;
|
||||||
|
}
|
||||||
if (button) this._set_button(button, values);
|
if (button) this._set_button(button, values);
|
||||||
|
|
||||||
// Create the request object
|
// Create the request object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user