Add floating window for new threads
New threads get a floating window just like new replies have. This only pops up on the board detail view. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -22,8 +22,9 @@ class PostForm(ModelForm):
|
||||
model = Post
|
||||
fields = ["subject", "name", "text", "image"]
|
||||
|
||||
def __init__(self, *args, board, ip, **kwargs):
|
||||
def __init__(self, *args, user, board, ip, **kwargs):
|
||||
super(PostForm, self).__init__(*args, **kwargs)
|
||||
self.user = user
|
||||
self.instance.board = board
|
||||
self.instance.ip = ip
|
||||
|
||||
@@ -42,10 +43,9 @@ class ReplyForm(PostForm):
|
||||
model = Post
|
||||
fields = ["name", "text", "bump", "capcode", "image"]
|
||||
|
||||
def __init__(self, *args, user, op, **kwargs):
|
||||
def __init__(self, *args, op, **kwargs):
|
||||
super(ReplyForm, self).__init__(*args, **kwargs)
|
||||
self.instance.op = op
|
||||
self.user = user
|
||||
|
||||
def clean(self):
|
||||
super().clean()
|
||||
|
||||
Reference in New Issue
Block a user