Commit 0857d28a authored by bbaer's avatar bbaer
Browse files

Fixed form dirty with fabric

parent ae6999ff
......@@ -79,15 +79,15 @@
"icon": "glyphicon-search"
},
{
"name": "rotateRight",
"selector": "turn-right",
"name": "freeMouse",
"selector": "mouse-mode",
"requiresDrawing": false,
"requiresSelection": false,
"isToggle": false,
"toggle": "",
"requiresSelection": true,
"isToggle": true,
"toggle": "isMouseMode",
"hasToggleElement": false,
"toggleElement": "",
"icon": "glyphicon-repeat"
"icon": "glyphicon-hand-up"
}
],
"currentMode": "draw",
......
......@@ -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");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment