Skip to content

Commit

Permalink
Merge pull request #950 from rparada/observeField-null-check
Browse files Browse the repository at this point in the history
Add null check to observeField() function
  • Loading branch information
darkv authored May 6, 2021
2 parents eb0a981 + 79db067 commit a27b5b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Frameworks/Ajax/Ajax/WebServerResources/wonder.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ var AjaxSubmitButton = {
},

observeField: function(updateContainerID, formFieldID, observeFieldFrequency, partial, observeDelay, options) {
if ($(formFieldID) == null) {
console.log("observeField can't find '" + formFieldID + "'");
return;
}
var submitFunction;
if (partial) {
// We need to cheat and make the WOForm that contains the form action appear to have been
Expand Down

0 comments on commit a27b5b3

Please sign in to comment.