mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 04:21:30 +01:00
NEW Show tips on search of string and numeric fields into lists
This commit is contained in:
@@ -1276,8 +1276,7 @@ if (empty($conf->global->MAIN_DISABLE_JQUERY_JNOTIFY) && !defined('DISABLE_JQUER
|
|||||||
?>
|
?>
|
||||||
// Defined properties for JNotify
|
// Defined properties for JNotify
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if (typeof $.jnotify == 'function')
|
if (typeof $.jnotify == 'function') {
|
||||||
{
|
|
||||||
$.jnotify.setup({
|
$.jnotify.setup({
|
||||||
delay: 3000 // the default time to show each notification (in milliseconds)
|
delay: 3000 // the default time to show each notification (in milliseconds)
|
||||||
, sticky: false // determines if the message should be considered "sticky" (user must manually close notification)
|
, sticky: false // determines if the message should be considered "sticky" (user must manually close notification)
|
||||||
@@ -1298,8 +1297,8 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
jQuery(document).ready(function() {
|
||||||
// Force to hide menus when page is inside an iFrame so we can show any page into a dialog popup
|
// Force to hide menus when page is inside an iFrame so we can show any page into a dialog popup
|
||||||
$(document).ready(function() {
|
|
||||||
if (window.location && window.location.pathname.indexOf("externalsite/frametop.php") == -1 && window.location !== window.parent.location ) {
|
if (window.location && window.location.pathname.indexOf("externalsite/frametop.php") == -1 && window.location !== window.parent.location ) {
|
||||||
console.log("Page is detected to be into an iframe, we hide by CSS the menus");
|
console.log("Page is detected to be into an iframe, we hide by CSS the menus");
|
||||||
// The page is in an iframe
|
// The page is in an iframe
|
||||||
@@ -1307,6 +1306,9 @@ $(document).ready(function() {
|
|||||||
jQuery(".id-container").css('width', '100%');
|
jQuery(".id-container").css('width', '100%');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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")) ?>');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1229,3 +1229,4 @@ PublicVirtualCard=Virtual business card
|
|||||||
TreeView=Tree view
|
TreeView=Tree view
|
||||||
DropFileToAddItToObject=Drop a file to add it to this object
|
DropFileToAddItToObject=Drop a file to add it to this object
|
||||||
UploadFileDragDropSuccess=The file(s) have been uploaded successfully
|
UploadFileDragDropSuccess=The file(s) have been uploaded successfully
|
||||||
|
SearchSyntaxTooltipForStringOrNum=For searching inside text fields, you can use the characters ^ or $ to make a 'start or end with' search or use the ! to make a 'does not contains' test. You can use the | between two strings instead of a space for a 'OR' condition instead of 'AND'. For numeric values, you can use the operator <, >, <= or >= before the value to filter using a mathematical comparison
|
||||||
Reference in New Issue
Block a user