We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72c268c + 8c84075 commit 9b416b9Copy full SHA for 9b416b9
1 file changed
app/assets/userfrosting/js/uf-form.js
@@ -225,6 +225,10 @@
225
*/
226
Plugin.prototype._defaultError = function (jqXHR, textStatus, errorThrown) {
227
// Error messages
228
+ if (!this.settings.msgTarget.data('ufAlerts')) {
229
+ this.settings.msgTarget.ufAlerts();
230
+ }
231
+
232
if (this._debugAjax && jqXHR.responseText) {
233
this.$element.trigger('submitError.ufForm', [jqXHR, textStatus, errorThrown]);
234
this.settings.msgTarget.ufAlerts('push', 'danger', jqXHR.responseJSON.description).ufAlerts('render');
@@ -428,4 +432,4 @@
428
432
console.warn('Method ' + methodOrOptions + ' does not exist.');
429
433
}
430
434
};
431
-})(jQuery, window, document);
435
+})(jQuery, window, document);
0 commit comments