hackfix streamer nested form
parent
f50660cd3b
commit
0bccd0a2a4
|
@ -3,4 +3,13 @@ $(function() {
|
|||
$('.picture_wrap').html(lichess.spinnerHtml);
|
||||
$(this).parents('form').submit();
|
||||
});
|
||||
// hackfix nested forms
|
||||
var $form = $('form.material');
|
||||
var $status = $form.find('div.status');
|
||||
if ($status.find('button').length) {
|
||||
$form.siblings().not('.top').appendTo($('form.material'));
|
||||
}
|
||||
$form.before($status.html(
|
||||
$('<form method="post" action="/streamer/approval/request">').html($status.html())
|
||||
));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue