Merge pull request #148 from Doha2012/master

modify submit
This commit is contained in:
Eugen 2015-02-22 19:53:07 +02:00
commit b79277e408
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>