Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate and refresh customer data sections on HTTP DELETE requests #9034

Merged
merged 1 commit into from
Mar 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Invalidate and refresh customer data sections on HTTP DELETE requests
  • Loading branch information
Vinai committed Mar 28, 2017

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Vinai Vinai Kopp
commit a06bdeaf2f6c1f59b1da1cbf8edb64fbaf87b9e4
Original file line number Diff line number Diff line change
@@ -344,7 +344,7 @@ define([
var sections,
redirects;

if (settings.type.match(/post|put/i)) {
if (settings.type.match(/post|put|delete/i)) {
sections = sectionConfig.getAffectedSections(settings.url);

if (sections) {
@@ -365,7 +365,7 @@ define([
$(document).on('submit', function (event) {
var sections;

if (event.target.method.match(/post|put/i)) {
if (event.target.method.match(/post|put|delete/i)) {
sections = sectionConfig.getAffectedSections(event.target.action);

if (sections) {