diff --git a/modules/system/assets/js/framework.js b/modules/system/assets/js/framework.js index 13e20342a..a352d8c4d 100644 --- a/modules/system/assets/js/framework.js +++ b/modules/system/assets/js/framework.js @@ -294,13 +294,6 @@ if (window.jQuery === undefined) } } - /* - * Initiate request - */ - if (options.confirm && !requestOptions.handleConfirmMessage(options.confirm)) { - return - } - /* * Allow default business logic to be called from user functions */ @@ -310,6 +303,13 @@ if (window.jQuery === undefined) requestOptions = $.extend(requestOptions, options) requestOptions.data = data.join('&') + /* + * Initiate request + */ + if (options.confirm && !requestOptions.handleConfirmMessage(options.confirm)) { + return + } + if (loading) loading.show() $(window).trigger('ajaxBeforeSend', [context]) $el.trigger('ajaxPromise', [context])