From 5df02a3eb9019f8797f33e2551f4b180f952f3b0 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Wed, 20 Aug 2014 10:12:44 +1000 Subject: [PATCH] Refs #568 - Inherit the parent framework success function --- modules/backend/assets/js/october.popup.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/backend/assets/js/october.popup.js b/modules/backend/assets/js/october.popup.js index a6749fd0d..79648597c 100644 --- a/modules/backend/assets/js/october.popup.js +++ b/modules/backend/assets/js/october.popup.js @@ -99,9 +99,11 @@ this.$el.request(this.options.handler, { data: this.options.extraData, success: function(data, textStatus, jqXHR) { - self.setContent(data.result) - $(window).trigger('ajaxUpdateComplete', [this, data, textStatus, jqXHR]) - self.triggerEvent('popupComplete') + this.success(data, textStatus, jqXHR).done(function(){ + self.setContent(data.result) + $(window).trigger('ajaxUpdateComplete', [this, data, textStatus, jqXHR]) + self.triggerEvent('popupComplete') + }) }, error: function(jqXHR, textStatus, errorThrown) { alert(jqXHR.responseText.length ? jqXHR.responseText : jqXHR.statusText)