-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: hide password hint and progress
- Loading branch information
1 parent
d933d89
commit a4f410f
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
16 changes: 12 additions & 4 deletions
16
autoinscribe/autoinscribe/doctype/autoinscribe_settings/autoinscribe_settings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
// Copyright (c) 2023, RedSoft Solutions Pvt. Ltd. and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("AutoInscribe Settings", { | ||
// refresh(frm) { | ||
frappe.ui.form.on("AutoInscribe Settings", { | ||
refresh: function (frm) { | ||
hidePasswordStrengthElements(frm); | ||
}, | ||
}); | ||
|
||
// }, | ||
// }); | ||
function hidePasswordStrengthElements(frm) { | ||
$.each(frm.fields_dict, function (fieldname, field) { | ||
if (field.df && field.df.fieldtype === "Password") { | ||
field.$wrapper.find(".password-strength-indicator, .help-box").hide(); | ||
} | ||
}); | ||
} |