removed saved warning
parent
33e441f802
commit
beb9247eb3
|
@ -64,7 +64,8 @@
|
||||||
baseUnit: 'px',
|
baseUnit: 'px',
|
||||||
snappingStep: 10,
|
snappingStep: 10,
|
||||||
showRulers: true,
|
showRulers: true,
|
||||||
show_outside_canvas: false
|
show_outside_canvas: false,
|
||||||
|
no_save_warning: true
|
||||||
},
|
},
|
||||||
uiStrings = Editor.uiStrings = {
|
uiStrings = Editor.uiStrings = {
|
||||||
common: {
|
common: {
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
// - invoke a file chooser dialog in 'save' mode
|
// - invoke a file chooser dialog in 'save' mode
|
||||||
// - save the file to location chosen by the user
|
// - save the file to location chosen by the user
|
||||||
Editor.setCustomHandlers = function(opts) {
|
Editor.setCustomHandlers = function(opts) {
|
||||||
|
Editor.show_save_warning = false;
|
||||||
Editor.ready(function() {
|
Editor.ready(function() {
|
||||||
if(opts.open) {
|
if(opts.open) {
|
||||||
$('#tool_open > input[type="file"]').remove();
|
$('#tool_open > input[type="file"]').remove();
|
||||||
|
@ -194,7 +195,6 @@
|
||||||
svgCanvas.open = opts.open;
|
svgCanvas.open = opts.open;
|
||||||
}
|
}
|
||||||
if(opts.save) {
|
if(opts.save) {
|
||||||
Editor.show_save_warning = false;
|
|
||||||
svgCanvas.bind("saved", opts.save);
|
svgCanvas.bind("saved", opts.save);
|
||||||
}
|
}
|
||||||
if(opts.pngsave) {
|
if(opts.pngsave) {
|
||||||
|
|
Loading…
Reference in New Issue