Michael Save
12 years ago
2 changed files with 29 additions and 1 deletions
@ -0,0 +1,26 @@ |
|||||
|
/* |
||||
|
* fix-report-delete-submit.js |
||||
|
* https://github.com/savetheinternet/Tinyboard-Tools/blob/master/js/fix-report-delete-submit.js
|
||||
|
* |
||||
|
* Fixes a known bug regarding the delete/report submit buttons. |
||||
|
* |
||||
|
* Released under the MIT license |
||||
|
* Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> |
||||
|
* |
||||
|
* Usage: |
||||
|
* $config['additional_javascript'][] = 'js/jquery.min.js'; |
||||
|
* $config['additional_javascript'][] = 'js/fix-report-delete-submit.js'; |
||||
|
* |
||||
|
*/ |
||||
|
|
||||
|
$(document).ready(function(){ |
||||
|
$('form[name="postcontrols"] div.delete input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"])').keypress(function(e) { |
||||
|
if(e.which == 13) { |
||||
|
e.preventDefault(); |
||||
|
$(this).next().click(); |
||||
|
return false; |
||||
|
} |
||||
|
return true; |
||||
|
}); |
||||
|
}); |
||||
|
|
Loading…
Reference in new issue