From cf411df04fb1dec1cb66b91b2dfb422d9eb3e2c7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 May 2021 21:55:34 +0200 Subject: [PATCH] add data-target-highlight for jquery validation --- views/bootstrap/class.Bootstrap.php | 8 ++++---- views/bootstrap4/class.Bootstrap4.php | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 5c6cc6875..43e7d2548 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1378,9 +1378,9 @@ $(document).ready(function() {
- + - '.getMLText("browse").'… + '.getMLText("browse").'…
@@ -1485,7 +1485,7 @@ $(document).ready(function() { $formid = md5($formname.$form); $content = ''; - $content .= "getID() : "") ."\">"; + $content .= "getID() : "") ."\">"; $content .= "
\n"; $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\"".($default ? ' title="'.htmlspecialchars($default->getFolder()->getFolderPathPlain().' / '.$default->getName()).'"' : '')." />"; $content .= ""; @@ -1549,7 +1549,7 @@ function folderSelected(id, name) { $formname = "targetid"; $formid = md5($formname.$form); $content = ''; - $content .= "getID() : "") ."\">"; + $content .= "getID() : "") ."\" data-target-highlight=\"choosefoldersearch".$formid."\">"; $content .= "
\n"; $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"".($default ? ' title="'.htmlspecialchars($default->getFolderPathPlain()).'"' : '')."/>"; $content .= ""; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 2c286409c..1b3e2f021 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -1050,7 +1050,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; function formField($title, $value, $params=array()) { /* {{{ */ if($title !== null) { echo "
"; - echo " "; + echo " "; echo "
"; } if(isset($params['field_wrap'][0])) @@ -1377,10 +1377,10 @@ $(document).ready(function() {
- +
@@ -1489,7 +1489,7 @@ $(document).ready(function() { $formid = md5($formname.$form); $content = ''; - $content .= "getID() : "") ."\">"; + $content .= "getID() : "") ."\">"; $content .= "
\n"; $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" />"; $content .= '
'; @@ -1556,7 +1556,7 @@ function folderSelected(id, name) { $formname = "targetid"; $formid = md5($formname.$form); $content = ''; - $content .= "getID() : "") ."\">"; + $content .= "getID() : "") ."\" data-target-highlight=\"choosefoldersearch".$formid."\">"; $content .= "
\n"; $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>"; $content .= '
';