Commit d3abe4f5 authored by Vincent Bechu's avatar Vincent Bechu

fixup

parent 830ef6b5
......@@ -11,22 +11,14 @@
<link rel="stylesheet" href="jgraduate/css/jgraduate.css" type="text/css"/>
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
<!--{if jquery_release}>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!{else}-->
<script src="jquery.js"></script>
<!--{endif}-->
<script src="js-hotkeys/jquery.hotkeys.min.js"></script>
<script src="jquerybbq/jquery.bbq.min.js"></script>
<script src="svgicons/jquery.svgicons.js"></script>
<script src="jgraduate/jquery.jgraduate.min.js"></script>
<script src="spinbtn/JQuerySpinBtn.min.js"></script>
<script src="touch.js"></script>
<!--{if svg_edit_release}>
<script src="svgedit.compiled.js"></script>
<!{else}-->
<script src="jquery.js"></script>
<script src="js-hotkeys/jquery.hotkeys.min.js"></script>
<script src="jquerybbq/jquery.bbq.min.js"></script>
<script src="svgicons/jquery.svgicons.js"></script>
<script src="jgraduate/jquery.jgraduate.min.js"></script>
<script src="spinbtn/JQuerySpinBtn.min.js"></script>
<script src="touch.js"></script>
<script src="svgedit.js"></script>
<script src="jquery-svg.js"></script>
<script src="contextmenu/jquery.contextMenu.js"></script>
......
......@@ -7,15 +7,14 @@
.ready(function (g) {
window.svgEditor.setCustomHandlers({
"save": function (svg) {
return g.changeState({
"value": svg
});
return g.triggerSubmit();
}
});
window.svgEditor.setConfig({
"no_save_warning" : true
});
})
.declareAcquiredMethod('triggerSubmit', 'triggerSubmit')
.declareMethod('render', function (options) {
return this.changeState({
'value': options.value,
......@@ -33,7 +32,7 @@
})
.declareMethod('getContent', function () {
var form_data = {};
form_data[this.state.key] = window.svgEditor.storage['svgedit-default'];
form_data[this.state.key] = window.svgEditor.canvas.getSvgString();
return form_data;
});
......
Markdown is supported
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