N°3914 Display label on "Add criterion" button when there's no criterion. Add tooltips to "Add criterion" and "Refresh" button

This commit is contained in:
Stephen Abello
2021-05-27 17:10:46 +02:00
committed by Eric
parent c0e1f9dcc0
commit d006131dba
2 changed files with 9 additions and 3 deletions

View File

@@ -859,3 +859,9 @@
@extend .ibo-is-alternative;
}
}
.sfm_tg_title{
display: none;
}
.ibo-criterion-group:empty ~ .sf_more_criterion .sfm_tg_title{
display: unset;
}

View File

@@ -406,7 +406,7 @@ $(function()
// Header part
var oHeaderElem = $('<div class="sfm_header"></div>')
.append('<a class="sfm_toggler" href="#"><span class="sfm_tg_icon fas fa-plus"></span></a>')
.append('<a class="sfm_toggler" data-tooltip-content="' + Dict.S('UI:Search:Criterion:MoreMenu:AddCriteria') + '" href="#"><span class="sfm_tg_title">' + Dict.S('UI:Search:Criterion:MoreMenu:AddCriteria') + '</span><span class="sfm_tg_icon fas fa-plus"></span></a>')
.appendTo(this.elements.more_criterion);
// Content part
@@ -675,8 +675,8 @@ $(function()
var sButtonText = (this.options.auto_submit === true) ? Dict.S('UI:Button:Refresh') : Dict.S('UI:Button:Search');
var sButtonIcon = (this.options.auto_submit === true) ? 'fas fa-sync' : 'fas fa-search';
var oButtonElem = $('<div class="sfb_header"></div>')
.append('<a class="fa-fw ' + sButtonIcon + '" title="' + sButtonText + '" href="#"></a>')
var oButtonElem = $('<div class="sfb_header" data-tooltip-content="' + sButtonText + '"></div>')
.append('<a class="fa-fw ' + sButtonIcon + '" href="#"></a>')
.appendTo(this.elements.submit_button);
// Bind events