From 77f7594d78a0849442b8b1608af69d67933a02a6 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Sun, 6 Dec 2020 21:23:45 +0100 Subject: [PATCH] Add dialog form description tooltips --- js/interface/dialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/interface/dialog.js b/js/interface/dialog.js index 485e9581..03c7bb1d 100644 --- a/js/interface/dialog.js +++ b/js/interface/dialog.js @@ -13,6 +13,9 @@ function buildForm(dialog) { bar.append(``) 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) {