Skip to content

Commit 6262e14

Browse files
author
Jessica Shi
committed
bug fix with empty commands
1 parent bb56c62 commit 6262e14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascripts/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,8 @@ function demo() {
917917
command += " -set-schedule=";
918918
for (var i = 0; i < tblScheduleView.numRows; ++i) {
919919
var c = $("#schedule" + i).val();
920+
if (!c) { continue; }
921+
920922
var tempCommand = c + "-";
921923
var valid = true;
922924

@@ -932,7 +934,6 @@ function demo() {
932934
if (valid) {
933935
// only add if user inputted all parameters
934936
command += tempCommand;
935-
console.log(tempCommand);
936937
}
937938
}
938939
command += "q";

0 commit comments

Comments
 (0)