mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
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:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user