Skip to content

Commit b4df0df

Browse files
authored
Fixed validation for lost password. (#1353)
1 parent b903f85 commit b4df0df

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

assets/js/admin/settings.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,12 +1132,19 @@
11321132
.closest(".user-registration-global-settings--field")
11331133
.find(".error.inline")
11341134
.remove();
1135+
$this
1136+
.closest(".user-registration-global-settings")
1137+
.append('<div class="ur-spinner is-active"></div>');
11351138

11361139
$.ajax({
11371140
url: user_registration_settings_params.ajax_url,
11381141
data: data,
11391142
type: "POST",
11401143
complete: function (response) {
1144+
$this
1145+
.closest(".user-registration-global-settings")
1146+
.find(".ur-spinner")
1147+
.remove();
11411148
if (response.responseJSON.success === false) {
11421149
if (
11431150
$this

0 commit comments

Comments
 (0)