From dc210abb08da628c4b52ed28745fcbca23b95382 Mon Sep 17 00:00:00 2001 From: Alexei Koshelev Date: Mon, 4 Mar 2024 16:06:37 +0300 Subject: [PATCH] [common] Delete tooltip for expand button in history panel item --- apps/common/main/lib/view/History.js | 18 ------------------ apps/presentationeditor/main/locale/en.json | 2 -- 2 files changed, 20 deletions(-) diff --git a/apps/common/main/lib/view/History.js b/apps/common/main/lib/view/History.js index 85c86537e5..d6ecd86ca4 100644 --- a/apps/common/main/lib/view/History.js +++ b/apps/common/main/lib/view/History.js @@ -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', diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 439fd0f5c4..0e6f48ec58 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -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:",