removed saved warning

master
Mark MacKay 2012-06-24 20:56:32 -05:00
parent 33e441f802
commit beb9247eb3
2 changed files with 3 additions and 2 deletions

View File

@ -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: {

View File

@ -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) {