Skip to content

Commit 0ba856b

Browse files
committed
(refs #47) At least one file is required
1 parent 5a5a1dd commit 0ba856b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/twirl/gitbucket/gist/edit.scala.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ <h1 style="margin: 0px;">New snippet</h1>
115115
}
116116
}
117117
}
118+
if(value == null){
119+
displayError('At least one file is required.');
120+
return false;
121+
}
118122
return true;
119123
});
120124

0 commit comments

Comments
 (0)