Item creation UX: Clearer placeholders, defaults

This commit is contained in:
Raphael Michel
2017-10-05 10:47:46 +02:00
parent aad433a3bc
commit 6b7bdf8c4f
3 changed files with 14 additions and 6 deletions

View File

@@ -9,6 +9,9 @@ $(document).ready(function () {
$("#existing-quota-group").children()[fn]();
} else if (v === "new") {
hideAll(animate);
if ($("#id_quota_add_new_name").val() === "") {
$("#id_quota_add_new_name").val($("input[name^=name_]").first().val());
}
$("#new-quota-group").children()[fn]();
} else {
hideAll(animate);