From 50ae4027874040234410d068cd390cfb8e841919 Mon Sep 17 00:00:00 2001 From: Joseph Atkins-Turkish Date: Mon, 18 Jan 2016 15:09:04 -0800 Subject: [PATCH] Reset project settings form after it loads --- ide/static/ide/js/settings.js | 3 +++ ide/templates/ide/project/settings.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ide/static/ide/js/settings.js b/ide/static/ide/js/settings.js index e7b4aad1..0755dfe6 100644 --- a/ide/static/ide/js/settings.js +++ b/ide/static/ide/js/settings.js @@ -265,6 +265,9 @@ CloudPebble.Settings = (function() { uuid_field.trigger("change"); }); + // Resetting the form ensures that the values are correctly set when Chrome restores the page after quitting the browser + pane.find('form')[0].reset(); + live_form.init(); CloudPebble.Sidebar.SetActivePane(pane, 'settings'); diff --git a/ide/templates/ide/project/settings.html b/ide/templates/ide/project/settings.html index f9ad7b70..6dce2c62 100644 --- a/ide/templates/ide/project/settings.html +++ b/ide/templates/ide/project/settings.html @@ -7,7 +7,7 @@
- +