submit_text: Error on too long.

This commit is contained in:
Andre D
2014-02-25 18:26:59 -05:00
committed by Neil Williams
parent 2330f0cecd
commit f8ffa3810d

View File

@@ -2137,8 +2137,9 @@ class ApiController(RedditController):
form.find('#example_domain').hide()
elif (form.has_errors(('type', 'link_type', 'wikimode'),
errors.INVALID_OPTION) or
form.has_errors('public_description', errors.TOO_LONG) or
form.has_errors('description', errors.TOO_LONG)):
form.has_errors(('public_description',
'submit_text',
'description'), errors.TOO_LONG)):
pass
elif sr and (form.has_errors(('prev_public_description_id',
'prev_description_id'), errors.TOO_LONG)):