Skip to content

Commit

Permalink
zuboard-1cg: sources: webpages: fix form issue
Browse files Browse the repository at this point in the history
When initiating a new 'Get' request after a 'POST' one, the 'Form'
parameters are not reset, so we do it manually.
  • Loading branch information
tnizan-witekio committed Nov 4, 2022
1 parent fc6cb73 commit 615aca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ZUBoard-1CG/sources/webpages/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ var webserver = {
},

factest_button_clicked: function(e) {

YAHOO.util.Connect.resetFormState();

/* make a XMLHTTP request */
YAHOO.util.Connect.asyncRequest('Get', '/factest_results.html', webserver.factest_button_callback);
},
Expand Down

0 comments on commit 615aca3

Please sign in to comment.