mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Revert "Add maxlength attribute to submit form title field."
This reverts commit 72b81791ca637ecb8073fa577d88033e154a7a56.
This commit is contained in:
@@ -529,9 +529,8 @@ class VPrintable(VLength):
|
||||
|
||||
|
||||
class VTitle(VLength):
|
||||
max_length = 300
|
||||
def __init__(self, param, **kw):
|
||||
VLength.__init__(self, param, self.max_length, **kw)
|
||||
def __init__(self, param, max_length = 300, **kw):
|
||||
VLength.__init__(self, param, max_length, **kw)
|
||||
|
||||
def param_docs(self):
|
||||
return {
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
from r2.lib.strings import strings
|
||||
from r2.lib.pages import UserText
|
||||
from r2.lib.template_helpers import add_sr
|
||||
from r2.controllers.validator import VTitle
|
||||
%>
|
||||
|
||||
<%namespace file="utils.html" import="error_field, submit_form, _a_buffered, reddit_selector, text_with_links"/>
|
||||
@@ -60,7 +59,7 @@ ${thing.formtabs_menu}
|
||||
|
||||
<div class="spacer">
|
||||
<%utils:round_field title="${_('title')}" id="title-field">
|
||||
<textarea name="title" rows="2" maxlength="${VTitle.max_length}" required>${thing.title}</textarea>
|
||||
<textarea name="title" rows="2" required>${thing.title}</textarea>
|
||||
${error_field("NO_TEXT", "title", "div")}
|
||||
${error_field("TOO_LONG", "title", "div")}
|
||||
</%utils:round_field>
|
||||
|
||||
Reference in New Issue
Block a user