mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
small fix "an unknown error occured"
When top page navigation is enabled in instance-config.php the button form inside the page navigation bar is selected instead of the main post form with the correct action tribute causing the script to post to the action of the next button in the top page navigation bar instead of the action attribute of the form with the name "post" which caused the message "an unknown error occured".
This commit is contained in:
parent
212a191ff4
commit
4537ef7f47
@ -38,7 +38,7 @@ $(document).ready(function(){
|
||||
'</div>' +
|
||||
'</form>');
|
||||
post_form
|
||||
.attr('action', $('form:first').attr('action'))
|
||||
.attr('action', $('form[name="post"]:first').attr('action'))
|
||||
.append($('input[name=board]:first').clone())
|
||||
.find('input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"])').keypress(function(e) {
|
||||
if(e.which == 13) {
|
||||
|
Loading…
Reference in New Issue
Block a user