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
f9075337
Commit
f9075337
authored
Feb 17, 2017
by
Carsten Rose
Browse files
Merge remote-tracking branch 'origin/raos_work' into crose_work
parents
0f23fc3a
0bd98467
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/QfqForm.js
View file @
f9075337
...
...
@@ -517,7 +517,7 @@ var QfqNS = QfqNS || {};
*/
n
.
QfqForm
.
prototype
.
changeHandler
=
function
(
obj
)
{
this
.
getSaveButton
().
removeClass
(
"
disabled
"
);
this
.
getSaveButton
().
addClass
(
"
alert-warning
"
);
this
.
getSaveButton
().
addClass
(
this
.
getSaveButtonAttentionClass
()
);
this
.
getSaveButton
().
removeAttr
(
"
disabled
"
);
};
...
...
@@ -528,11 +528,17 @@ var QfqNS = QfqNS || {};
* @private
*/
n
.
QfqForm
.
prototype
.
resetHandler
=
function
(
obj
)
{
this
.
getSaveButton
().
removeClass
(
"
alert-warning
"
);
this
.
getSaveButton
().
removeClass
(
this
.
getSaveButtonAttentionClass
()
);
this
.
getSaveButton
().
addClass
(
"
disabled
"
);
this
.
getSaveButton
().
attr
(
"
disabled
"
,
"
disabled
"
);
};
n
.
QfqForm
.
prototype
.
getSaveButtonAttentionClass
=
function
()
{
var
$saveButton
=
this
.
getSaveButton
();
return
$saveButton
.
data
(
'
class-on-change
'
)
||
'
alert-warning
'
;
};
/**
*
* @returns {jQuery|HTMLElement}
...
...
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