diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-05-04 13:58:38 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-05-04 13:58:38 +0900 |
| commit | 7764bb50aaec6eb55a0f51e177c1d72f1d9c8ebc (patch) | |
| tree | a3326412011935c07d30498a2349b55f3d9dee26 | |
| parent | 83989bba88d316ea8bbc48d892cc667fab2f7e9a (diff) | |
use data-board value for form submission for board so that quick posting / replies works from ukko, ukko2, ukko3 and other overboad extensions / themes
| -rw-r--r-- | js/quick-post-controls.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js index 62dfa1e0..3751b4cf 100644 --- a/js/quick-post-controls.js +++ b/js/quick-post-controls.js @@ -40,9 +40,10 @@ $(document).ready(function(){ '</div>' + '</form>'); if($('form[name="post"]:first').size()){ + var board=$(this).parent().parent().parent().attr("data-board"); post_form .attr('action', $('form[name="post"]:first').attr('action')) - .append($('input[name=board]:first').clone()); + .append('<input type="hidden" value="'+board+'" name="board" />'); }else{ var board=$(this).parent().parent().parent().attr("data-board"); if(board){ |
