From 677ae4c97a0b8b6cb6c68c8753d7f8308c175df1 Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Mon, 14 Mar 2011 07:18:15 +0000 Subject: [PATCH] issue 121 --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40118 --- js/wwwsqldesigner.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 54e6f1e..adefd5e 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -1274,13 +1274,20 @@ SQL.IO.prototype.build = function() { OZ.DOM.clear(this.dom.backend); var bs = CONFIG.AVAILABLE_BACKENDS; - var def = CONFIG.DEFAULT_BACKEND; + var be = CONFIG.DEFAULT_BACKEND; + var r = window.location.search.substring(1).match(/backend=([^&]*)/); + if (r) { + req = r[1]; + if (bs.indexOf(req) != -1) { + be = req; + } + } for (var i=0;i