Skip to content

Commit

Permalink
Don't analyze or generate if input empty (fixes #172)
Browse files Browse the repository at this point in the history
* Check for the input and return if the input is empty

* Falsely check for analyzer input

* Input check using browser validation for analyzer and generator

* Check at browser validation
  • Loading branch information
share-with-me authored and sushain97 committed Jul 26, 2017
1 parent daee7bd commit 928f43a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var currentAnalyzerRequest;

if(modeEnabled('analyzation')) {
$(document).ready(function () {
$('#analyze').click(function () {
$('#analysisForm').submit(function () {
analyze();
persistChoices('analyzer', true);
});
Expand Down
2 changes: 1 addition & 1 deletion assets/js/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var currentGeneratorRequest;

if(modeEnabled('generation')) {
$(document).ready(function () {
$('#generate').click(function () {
$('#generateForm').submit(function () {
generate();
persistChoices('generator', true);
});
Expand Down

0 comments on commit 928f43a

Please sign in to comment.