summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorundido <firekid109@hotmail.com>2013-09-27 21:30:25 -0300
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:41:07 -0500
commit4537ef7f47ae659a05e6bb8e45aaa7a9bea92cad (patch)
tree4eccd238ff99de3067e86c32b2fcbf875964625e
parent212a191ff4d7e07c60c926ffffd18c09343c9cd9 (diff)
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".
-rw-r--r--js/quick-post-controls.js2
1 files changed, 1 insertions, 1 deletions
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(){
'</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) {