Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
46a6af99
Commit
46a6af99
authored
Nov 08, 2017
by
Benjamin Baer
Browse files
Merge branch 'bug_4836' into 'master'
Created a saveInProgress Variable See merge request
!26
parents
0de87089
3a839343
Changes
2
Hide whitespace changes
Inline
Side-by-side
javascript/src/Form.js
View file @
46a6af99
...
...
@@ -35,6 +35,7 @@ var QfqNS = QfqNS || {};
// Since we cannot predict the effect on disable bubbling of the `input` and `paste` events, we resort to this
// home-brew solution.
this
.
inputAndPasteHandlerCalled
=
false
;
this
.
saveInProgress
=
false
;
if
(
!
document
.
forms
[
this
.
formId
])
{
throw
new
Error
(
"
Form '
"
+
formId
+
"
' does not exist.
"
);
...
...
@@ -168,6 +169,7 @@ var QfqNS = QfqNS || {};
}));
$
(
"
#save-button
"
).
removeClass
(
'
btn-warning active disabled
'
);
$
(
"
#save-button
"
).
addClass
(
'
btn-default
'
);
this
.
saveInProgress
=
false
;
};
/**
...
...
javascript/src/QfqForm.js
View file @
46a6af99
...
...
@@ -517,7 +517,9 @@ var QfqNS = QfqNS || {};
n
.
Log
.
debug
(
"
save click
"
);
this
.
getSaveButton
().
removeClass
(
'
btn-info
'
);
this
.
getSaveButton
().
addClass
(
'
btn-warning active disabled
'
);
this
.
submit
();
if
(
!
this
.
form
.
saveInProgress
)
{
this
.
submit
();
}
};
/**
...
...
@@ -587,6 +589,7 @@ var QfqNS = QfqNS || {};
submitQueryParameters
=
$
.
extend
({},
queryParameters
,
submitReason
);
this
.
form
.
submitTo
(
this
.
submitTo
,
submitQueryParameters
);
this
.
form
.
saveInProgress
=
true
;
};
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment