Add dialog form description tooltips

This commit is contained in:
JannisX11 2020-12-06 21:23:45 +01:00
parent 6677fb0d2f
commit 77f7594d78

View File

@ -13,6 +13,9 @@ function buildForm(dialog) {
bar.append(`<label class="name_space_left" for="${form_id}">${tl(data.label)+(data.nocolon?'':':')}</label>`)
dialog.max_label_width = Math.max(getStringWidth(tl(data.label)), dialog.max_label_width)
}
if (data.description) {
bar.attr('title', tl(data.description))
}
var input_element;
switch (data.type) {