Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-02-16 16:56:33 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-02-19 15:21:14 -0500
commit4b1a72db810341eaf2c3282f0d38b12e5e4da18b (patch)
tree9d260e2a0c410c92aee697868d4fe764b9c227c5 /src
parenta52cbcea4140a50d84fb472062247851ce9c6708 (diff)
downloadtame-4b1a72db810341eaf2c3282f0d38b12e5e4da18b.tar.gz
tame-4b1a72db810341eaf2c3282f0d38b12e5e4da18b.tar.bz2
tame-4b1a72db810341eaf2c3282f0d38b12e5e4da18b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/current/scripts/entry-form.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/current/scripts/entry-form.js b/src/current/scripts/entry-form.js
index 56bf7a4..73a55e2 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;
} );