[common] Delete tooltip for expand button in history panel item

This commit is contained in:
Alexei Koshelev
2024-03-04 16:06:37 +03:00
parent 1fabf1b1a4
commit dc210abb08
2 changed files with 0 additions and 20 deletions

View File

@ -131,22 +131,6 @@ define([
me.btnExpand.setCaption(me.storeHistory.hasCollapsed() ? me.textShowAll : me.textHideAll);
});
//TODO: Разобраться с тултипом
var changetooltip = function (dataview, view, record) {
if (!record.get('hasParent')) {
if (view.btnTip) {
view.btnTip.dontShow = true;
view.btnTip.tip().remove();
view.btnTip = null;
}
var btns = $(view.el).find('.revision-expand').tooltip({title: (record.get('isExpanded')) ? me.textHide : me.textShow, placement: 'cursor'});
if (btns.length>0)
view.btnTip = btns.data('bs.tooltip');
}
};
this.viewHistoryList.on('item:add', changetooltip);
this.viewHistoryList.on('item:change', changetooltip);
this.btnBackToDocument = new Common.UI.Button({
parentEl: $('#history-btn-back', this.$el),
cls: 'btn-toolbar',
@ -179,8 +163,6 @@ define([
},
textRestore: 'Restore',
textShow: 'Expand',
textHide: 'Collapse',
textVersionHistory: 'Version History',
textHighlightDeleted: 'Highlight deleted',
textHideAll: 'Hide detailed changes',

View File

@ -638,10 +638,8 @@
"Common.Views.Header.txtRename": "Rename",
"Common.Views.History.textVersionHistory": "Version History",
"Common.Views.History.textHighlightDeleted": "Highlight deleted",
"Common.Views.History.textHide": "Collapse",
"Common.Views.History.textHideAll": "Hide detailed changes",
"Common.Views.History.textRestore": "Restore",
"Common.Views.History.textShow": "Expand",
"Common.Views.History.textShowAll": "Show detailed changes",
"Common.Views.History.textVer": "ver.",
"Common.Views.ImageFromUrlDialog.textUrl": "Paste an image URL:",