search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to disable daypilot popup

Asked by Axel Galliot
8 months ago.

Hello everyone,
For reasons, I sometime need to interrupt DayPilot Backend request to the server with window.stop() before firing another Backend.
But when I do, a DayPilot popup that's defined in daypilot-all.js (line 15336) appear. Is there a way to disable this popup ?

mvc
Answer posted by Dan Letecky [DayPilot]
8 months ago.

The modal popup is displayed by the default AJAX error handler (*AjaxErrorJavaScript* property):

AjaxErrorJavaScript="if (DayPilot.Modal) { new DayPilot.Modal().showHtml(args.request.responseText); } else { alert('AJAX callback error (500)'); }"

You can replace it with an empty string to disable the modal popup:

AjaxErrorJavaScript=""

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.