mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-29 21:24:51 +01:00
Fix typo
This commit is contained in:
parent
38ed2ca08c
commit
6e02cbe2d5
1 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@ var LSform = new Class({
|
||||||
this.idform = $('LSform_idform').value;
|
this.idform = $('LSform_idform').value;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.submiting = false;
|
this.submitting = false;
|
||||||
|
|
||||||
this.initializeLSform();
|
this.initializeLSform();
|
||||||
this.initializeLSformLayout();
|
this.initializeLSformLayout();
|
||||||
|
@ -281,22 +281,22 @@ var LSform = new Class({
|
||||||
|
|
||||||
onSubmit: function(event) {
|
onSubmit: function(event) {
|
||||||
if (this.submit_confirmed) {
|
if (this.submit_confirmed) {
|
||||||
// On non-ajax form, leave form submiting if already confirmed
|
// On non-ajax form, leave form submitting if already confirmed
|
||||||
LSdebug('onSubmit(): form submission already confirmed');
|
LSdebug('onSubmit(): form submission already confirmed');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop form submiting event
|
// Stop form submitting event
|
||||||
event = new Event(event);
|
event = new Event(event);
|
||||||
event.stop();
|
event.stop();
|
||||||
|
|
||||||
// Check if form is already submitting
|
// Check if form is already submitting
|
||||||
if (this.submiting) {
|
if (this.submitting) {
|
||||||
// Form is already submitting: stop
|
// Form is already submitting: stop
|
||||||
LSdebug('onSubmit(): form already submiting...');
|
LSdebug('onSubmit(): form already submitting...');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.submiting = true;
|
this.submitting = true;
|
||||||
|
|
||||||
// Fire
|
// Fire
|
||||||
LSdebug('onSubmit(): fire submit event');
|
LSdebug('onSubmit(): fire submit event');
|
||||||
|
@ -305,7 +305,7 @@ var LSform = new Class({
|
||||||
|
|
||||||
onSubmitConfirm: function (confirmed, event) {
|
onSubmitConfirm: function (confirmed, event) {
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
this.submiting = false;
|
this.submitting = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ var LSform = new Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
onAjaxSubmitComplete: function(responseText, responseXML) {
|
onAjaxSubmitComplete: function(responseText, responseXML) {
|
||||||
this.submiting = false;
|
this.submitting = false;
|
||||||
var data = JSON.decode(responseText);
|
var data = JSON.decode(responseText);
|
||||||
if ( varLSdefault.checkAjaxReturn(data) ) {
|
if ( varLSdefault.checkAjaxReturn(data) ) {
|
||||||
this.resetErrors();
|
this.resetErrors();
|
||||||
|
|
Loading…
Reference in a new issue