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
0857d28a
Commit
0857d28a
authored
Jan 30, 2018
by
bbaer
Browse files
Fixed form dirty with fabric
parent
ae6999ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/Resources/Public/Json/fabric.buttons.json
View file @
0857d28a
...
...
@@ -79,15 +79,15 @@
"icon"
:
"glyphicon-search"
},
{
"name"
:
"
rotateRight
"
,
"selector"
:
"
turn-right
"
,
"name"
:
"
freeMouse
"
,
"selector"
:
"
mouse-mode
"
,
"requiresDrawing"
:
false
,
"requiresSelection"
:
fals
e
,
"isToggle"
:
fals
e
,
"toggle"
:
""
,
"requiresSelection"
:
tru
e
,
"isToggle"
:
tru
e
,
"toggle"
:
"
isMouseMode
"
,
"hasToggleElement"
:
false
,
"toggleElement"
:
""
,
"icon"
:
"glyphicon-
repeat
"
"icon"
:
"glyphicon-
hand-up
"
}
],
"currentMode"
:
"draw"
,
...
...
javascript/src/Plugins/qfq.fabric.js
View file @
0857d28a
...
...
@@ -945,6 +945,8 @@ $(function (n) {
this
.
outputField
.
val
(
JSON
.
stringify
(
that
.
canvas
.
toJSON
()));
if
(
this
.
qfqPage
.
qfqForm
)
{
this
.
qfqPage
.
qfqForm
.
eventEmitter
.
emitEvent
(
'
form.changed
'
,
n
.
EventEmitter
.
makePayload
(
that
,
null
));
this
.
qfqPage
.
qfqForm
.
changeHandler
();
this
.
qfqPage
.
qfqForm
.
form
.
formChanged
=
true
;
}
else
{
throw
(
"
Error: Couldn't initialize qfqForm - not possible to send form.changed event
"
);
}
...
...
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