From 7e435d9fdb8cdb64d40eff83b0cf985266405acd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 6 May 2021 13:38:35 +0200 Subject: [PATCH] js-Validator: Optional Titel des gemahnten Feldes vor Fehlermeldung anzeigen --- js/kivi.Validator.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/kivi.Validator.js b/js/kivi.Validator.js index bc19ee537..15748cbc5 100644 --- a/js/kivi.Validator.js +++ b/js/kivi.Validator.js @@ -134,6 +134,9 @@ namespace("kivi.Validator", function(ns) { if ($e.hasClass('tooltipstered')) $e.tooltipster('destroy'); + if ($e.data('title')) + error = $e.data('title') + ': ' + error; + $e.tooltipster({ content: error, theme: 'tooltipster-light', -- 2.20.1