Skip to content

Fix for success handler for gdpr-privacy-preferences-frm submission#5

Merged
a6software merged 1 commit intodevelopfrom
fix-gdpr-privacy-preferences-frm-submission
Feb 8, 2019
Merged

Fix for success handler for gdpr-privacy-preferences-frm submission#5
a6software merged 1 commit intodevelopfrom
fix-gdpr-privacy-preferences-frm-submission

Conversation

@a6software
Copy link

Copy of upstream PR - trewknowledge#244

  • Removes unused local variable
  • Found response.status is undefined, so use xhr.status check instead - however may not be needed
  • Force window.location.reload to load page from server, rather than local cache

It may be that the 200 === xhr.status check is not required. This is the success handler function, so a successful outcome is assumed(?)

I haven't updated the else / displayNotification function, as I'm not sure what the expected contents of the response.data... object would be. Perhaps hardcoded with translated error strings?

@a6software a6software merged commit e9f675f into develop Feb 8, 2019
@a6software a6software deleted the fix-gdpr-privacy-preferences-frm-submission branch February 8, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants