mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
These events should pass the context, to be aligned with the others
This commit is contained in:
parent
37a0a8290e
commit
569fe2e468
@ -268,8 +268,8 @@ if (window.jQuery === undefined)
|
||||
|
||||
if (loading) loading.show()
|
||||
|
||||
$(window).trigger('ajaxBeforeSend')
|
||||
$el.trigger('ajaxPromise')
|
||||
$(window).trigger('ajaxBeforeSend', [context])
|
||||
$el.trigger('ajaxPromise', [context])
|
||||
return $.ajax(requestOptions)
|
||||
.fail(function(jqXHR, textStatus, errorThrown){
|
||||
if (!isRedirect) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user