From 6d1cb03a3d8180acb32924e55e28b3b629ae1c91 Mon Sep 17 00:00:00 2001 From: undido Date: Fri, 27 Sep 2013 21:30:25 -0300 Subject: [PATCH] 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". --- js/quick-post-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js index efce3371..80c3356a 100644 --- a/js/quick-post-controls.js +++ b/js/quick-post-controls.js @@ -38,7 +38,7 @@ $(document).ready(function(){ '' + ''); 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) {