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
23650113
Commit
23650113
authored
Apr 19, 2016
by
Rafael Ostertag
Browse files
Changes in commit
bb15e252
messed up response handling when saving forms. Fixed.
parent
c3b4e956
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/QfqForm.js
View file @
23650113
...
...
@@ -431,25 +431,39 @@ var QfqNS = QfqNS || {};
if
(
data
[
'
form-update
'
])
{
this
.
applyElementConfiguration
(
data
[
'
form-update
'
]);
}
return
;
}
return
;
if
(
data
.
redirect
===
"
client
"
)
{
window
.
history
.
back
();
return
;
}
if
(
data
.
redirect
===
"
url
"
||
data
[
'
redirect-url
'
])
{
window
.
location
=
data
[
'
redirect-url
'
];
return
;
}
break
;
case
'
new
'
:
var
target
=
this
.
getNewButtonTarget
();
window
.
location
=
this
.
getNewButtonTarget
();
return
;
}
if
(
data
.
redirect
===
"
client
"
)
{
window
.
history
.
back
();
return
;
}
default
:
if
(
data
.
redirect
===
"
client
"
)
{
window
.
history
.
back
();
return
;
}
if
(
data
.
redirect
===
"
url
"
||
data
[
'
redirect-url
'
])
{
window
.
location
=
data
[
'
redirect-url
'
];
return
;
if
(
data
.
redirect
===
"
url
"
||
data
[
'
redirect-url
'
])
{
window
.
location
=
data
[
'
redirect-url
'
];
return
;
}
break
;
}
};
n
.
QfqForm
.
prototype
.
getNewButtonTarget
=
function
()
{
...
...
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