modify submit

This commit is contained in:
DOHA 2015-02-22 19:30:21 +02:00
parent c86b410abc
commit 8671a052e7
2 changed files with 1 additions and 10 deletions

View File

@ -79,9 +79,6 @@ public class RedditController {
@RequestMapping("/post")
public String showSubmissionForm(Model model) throws JsonProcessingException, IOException {
try {
List<String> subreddits = getSubreddit();
model.addAttribute("subreddits", subreddits);
String needsCaptchaResult = needsCaptcha();
if (needsCaptchaResult.equalsIgnoreCase("true")) {
String newCaptchaResult = getNewCaptcha();

View File

@ -23,13 +23,7 @@
<br><br>
<div class="form-group">
<label class="col-sm-3">Subreddit</label>
<span class="col-sm-9">
<select name="sr">
<c:forEach items="${subreddits}" var="item">
<option value="${item}">${item}</option>
</c:forEach>
</select>
</span>
<span class="col-sm-9"><input name="sr" placeholder="Subreddit" class="form-control" /></span>
</div>
<br><br>