From 580311c8b421992389cef82fb74fd99182c0d1c7 Mon Sep 17 00:00:00 2001 From: Thomas Tempelmann Date: Tue, 16 Jun 2015 09:53:38 +0200 Subject: [PATCH] Bugfix: SQL.IO.prototype.clientlocalload now aborts properly if Cancel button was chosen. --- js/io.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/io.js b/js/io.js index ea1b4b7..facbb78 100644 --- a/js/io.js +++ b/js/io.js @@ -157,6 +157,7 @@ SQL.IO.prototype.clientlocalsave = function() { var key = this.promptName("serversaveprompt"); if (!key) { return; } + key = "wwwsqldesigner_databases_" + (key || "default"); try { @@ -174,6 +175,8 @@ SQL.IO.prototype.clientlocalload = function() { } var key = this.promptName("serverloadprompt"); + if (!key) { return; } + key = "wwwsqldesigner_databases_" + (key || "default"); try { @@ -309,6 +312,7 @@ SQL.IO.prototype.dropboxsave = function() { var key = this.promptName("serversaveprompt", ".xml"); if (!key) { return; } + var filename = (key || "default") + ".xml"; var sql_io = this; @@ -328,6 +332,7 @@ SQL.IO.prototype.dropboxload = function() { var key = this.promptName("serverloadprompt", ".xml"); if (!key) { return; } + var filename = (key || "default") + ".xml"; var sql_io = this;