Skip to content

Commit

Permalink
MAGETWO-66886: Invalidate and refresh customer data sections on HTTP …
Browse files Browse the repository at this point in the history
…DELETE requests #9034
  • Loading branch information
Oleksii Korshenko authored Mar 29, 2017
2 parents ecb0aab + d4f1ee1 commit bd3b6f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit bd3b6f7

Please sign in to comment.