Skip to content
GitLab
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
3946a07d
Commit
3946a07d
authored
Aug 17, 2017
by
bbaer
Browse files
#4144: Entwurf, Warnungsfenster mit Reload button webb record gelockt.
parent
8797684f
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/QfqForm.js
View file @
3946a07d
...
...
@@ -216,11 +216,18 @@ var QfqNS = QfqNS || {};
n
.
QfqForm
.
prototype
.
dirtyNotifyDenied
=
function
(
obj
)
{
var
messageType
;
var
isModal
=
false
;
var
messageButtons
=
[];
var
message
;
switch
(
obj
.
data
.
status
)
{
case
"
conflict
"
:
messageType
=
"
error
"
;
isModal
=
true
;
messageButtons
.
push
({
label
:
"
Reload
"
,
eventName
:
'
reload
'
});
this
.
setButtonEnabled
(
this
.
getSaveButton
(),
false
);
this
.
getSaveButton
().
removeClass
(
this
.
getSaveButtonAttentionClass
());
this
.
setButtonEnabled
(
this
.
getDeleteButton
(),
false
);
...
...
@@ -250,13 +257,8 @@ var QfqNS = QfqNS || {};
message
:
obj
.
data
.
message
,
type
:
messageType
,
timeout
:
n
.
Alert
.
constants
.
NO_TIMEOUT
,
modal
:
true
,
buttons
:
[
{
label
:
"
Reload
"
,
eventName
:
'
reload
'
}
]
modal
:
isModal
,
buttons
:
messageButtons
});
message
.
on
(
'
alert.reload
'
,
function
()
{
window
.
location
.
reload
(
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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