summaryrefslogtreecommitdiffstats
path: root/src/main/webapp/javascripts/fiddle_backbone/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/javascripts/fiddle_backbone/app.js')
-rw-r--r--src/main/webapp/javascripts/fiddle_backbone/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/webapp/javascripts/fiddle_backbone/app.js b/src/main/webapp/javascripts/fiddle_backbone/app.js
index c47efc0..e5e4a3a 100644
--- a/src/main/webapp/javascripts/fiddle_backbone/app.js
+++ b/src/main/webapp/javascripts/fiddle_backbone/app.js
@@ -212,8 +212,9 @@ define([
if (this.length && !this.getSelectedType())
{
this.setSelectedType(this.first().id, true);
+ schemaDef.set("dbType", this.getSelectedType());
}
-
+
// make sure everything is up-to-date on the page
dbTypesListView.render();
schemaDefView.render();
@@ -258,7 +259,7 @@ define([
else
router.navigate("!" + this.getSelectedType().id);
- schemaDef.set("dbType", this.getSelectedType());
+ schemaDef.set("dbType", this.getSelectedType());
});