Skip to content

Commit

Permalink
Merge pull request #4 from redsoftware-hq/ashish
Browse files Browse the repository at this point in the history
fix: hide password hint and progress
  • Loading branch information
deepak-redsoftware authored Jan 3, 2024
2 parents a2ed9c3 + a4f410f commit 6fd9502
Showing 1 changed file with 12 additions and 4 deletions.
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();
}
});
}

0 comments on commit 6fd9502

Please sign in to comment.