From 622c10d13f696b93dc63e48677a87fd5b2371421 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 28 Apr 2018 18:19:14 +0200 Subject: Added animations and fixed several bugs --- main/app/sprinkles/core/assets/userfrosting/js/uf-alerts.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/app/sprinkles/core/assets/userfrosting') diff --git a/main/app/sprinkles/core/assets/userfrosting/js/uf-alerts.js b/main/app/sprinkles/core/assets/userfrosting/js/uf-alerts.js index 77f35c7..98fbea0 100644 --- a/main/app/sprinkles/core/assets/userfrosting/js/uf-alerts.js +++ b/main/app/sprinkles/core/assets/userfrosting/js/uf-alerts.js @@ -128,6 +128,7 @@ _fetchSuccess: function (alerts) { if (alerts != null) this.alerts = $.merge(this.alerts, alerts); this.$element.trigger('fetch.' + this._name); + console.log("[ALERT LOGGER] FETCHED ALERTS"); }, /** * Failure callback for fetch @@ -152,6 +153,7 @@ message: options[1] }); + console.log("[ALERT LOGGER] PUSHED ALERT"); return this.$element; }, /** @@ -166,6 +168,7 @@ $.when(this._newAlertsPromise).then(this._render.bind(this)); } + console.log("[ALERT LOGGER] RENDERED ALERT"); return this.$element; }, /* @@ -256,6 +259,7 @@ // Remove plugin from element this.$element.removeData(this._name); + console.log("[ALERT LOGGER] DESTROYED ALERT INSTANCE"); return this.$element; } }); -- cgit v1.2.3