From 3ee6c82f7450fe28a46c94307110037f208e257b 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 | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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..02c5236e 100644 --- a/ide/templates/ide/project/settings.html +++ b/ide/templates/ide/project/settings.html @@ -7,11 +7,11 @@
- +
- +