FIX Tooltip for search syntax must not appear on date fields

This commit is contained in:
Laurent Destailleur
2023-10-18 13:50:04 +02:00
parent 7a74fa25e3
commit b1c1c6b32d

View File

@@ -1048,7 +1048,7 @@ function document_preview(file, type, title)
optionsbuttons = {}
if (mode == 'image' && showOriginalSizeButton)
{
{
var curRot = 0;
optionsbuttons = {
"<?php echo dol_escape_js($langs->transnoentitiesnoconv("OriginalSize")); ?>": function() { console.log("Click on original size"); jQuery(".ui-dialog-content.ui-widget-content > object").css({ "max-height": "none" }); },
@@ -1312,7 +1312,7 @@ jQuery(document).ready(function() {
}
// Code to set tooltip on search field
jQuery('table.liste tr.liste_titre_filter td.liste_titre input[name^="search"][type=text]:not("maxwidthdate")').attr('title', '<?php echo dol_escape_js($langs->transnoentities("SearchSyntaxTooltipForStringOrNum")) ?>');
jQuery('table.liste tr.liste_titre_filter td.liste_titre input[name^="search"][type=text]:not(".maxwidthdate")').attr('title', '<?php echo dol_escape_js($langs->transnoentities("SearchSyntaxTooltipForStringOrNum")) ?>');
});