Skip to content

Commit

Permalink
Merge pull request #2078 from laboro/bug/BAP-10833
Browse files Browse the repository at this point in the history
BAP-10833: Calendar stuck when event was deleted
  • Loading branch information
vbyndych authored Aug 10, 2016
2 parents 4684ceb + 522a228 commit bb406c0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ define([
'orotranslation/js/translator',
'routing',
'oro/dialog-widget',
'oroui/js/mediator',
'oroui/js/app/views/loading-mask-view',
'orocalendar/js/form-validation',
'oroui/js/delete-confirmation',
Expand All @@ -15,6 +16,7 @@ define([
__,
routing,
DialogWidget,
mediator,
LoadingMask,
FormValidation,
DeleteConfirmation,
Expand All @@ -24,7 +26,6 @@ define([
'use strict';

var $ = Backbone.$;

/**
* @export orocalendar/js/calendar/event/view
* @class orocalendar.calendar.event.View
Expand Down Expand Up @@ -215,6 +216,13 @@ define([
},

_handleResponseError: function(model, response) {
if (response.status === 404) {
mediator.execute(
'showMessage',
'error',
__('Calendar event doesn\'t exist. Please refresh page.')
);
}
this.showError(response.responseJSON || {});
},

Expand Down

0 comments on commit bb406c0

Please sign in to comment.