From 4b1a72db810341eaf2c3282f0d38b12e5e4da18b Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 16 Feb 2018 16:56:33 -0500 Subject: [PATCH] entry-form: Clear YAML filename after loading This way the test case can be re-loaded; otherwise it is not recognized as a change and does not trigger the event. --- src/current/scripts/entry-form.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/current/scripts/entry-form.js b/src/current/scripts/entry-form.js index 56bf7a47..73a55e22 100644 --- a/src/current/scripts/entry-form.js +++ b/src/current/scripts/entry-form.js @@ -1515,11 +1515,18 @@ var client = ( function() yamlconsole.style.display = ''; yamlconsole.textContent = ''; + if ( yamlbrowse.files.length === 0 ) + { + return; + } + runYamlTestCases( Array.prototype.slice.call( yamlbrowse.files, 0 ), createYamlRunner( yamlconsole ) ); + yamlbrowse.value = ''; + return false; } );