Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
reddit.js: Don't submit disabled forms in post_form
Browse files Browse the repository at this point in the history
  • Loading branch information
madbook committed Oct 7, 2016
1 parent 8fb3e91 commit da54902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions r2/r2/public/static/js/reddit.js
Expand Up @@ -58,6 +58,9 @@ function post_user(form, where) {

function post_form(form, where, statusfunc, nametransformfunc, block) {
try {
if (form.disabled) {
return false;
}
if(statusfunc == null)
statusfunc = function(x) {
return r.config.status_msg.submitting;
Expand Down

0 comments on commit da54902

Please sign in to comment.