Skip to content

Commit 3e78258

Browse files
committed
refactor: set title and attr using functions
1 parent 787f26a commit 3e78258

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/view/WorkspaceManager.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ define(function (require, exports, module) {
334334
let $bottomPanelTabsOverflow = $('<div class="bottom-panel-tabs-overflow"></div>');
335335
let $tabBarActions = $('<div class="bottom-panel-tab-bar-actions"></div>');
336336
$tabBarActions.append(
337-
'<span class="bottom-panel-hide-btn" title="' + Strings.BOTTOM_PANEL_HIDE + '"><i class="fa-solid fa-chevron-down"></i></span>'
337+
$('<span class="bottom-panel-hide-btn"><i class="fa-solid fa-chevron-down"></i></span>')
338+
.attr('title', Strings.BOTTOM_PANEL_HIDE)
338339
);
339340
$bottomPanelTabBar.append($bottomPanelTabsOverflow);
340341
$bottomPanelTabBar.append($tabBarActions);
@@ -346,11 +347,8 @@ define(function (require, exports, module) {
346347
PanelView.init($bottomPanelContainer, $bottomPanelTabBar, $bottomPanelTabsOverflow);
347348

348349
// Create status bar chevron toggle for bottom panel
349-
$statusBarPanelToggle = $(
350-
'<div id="status-panel-toggle" class="indicator global-indicator" title="' + Strings.BOTTOM_PANEL_SHOW + '">' +
351-
'<i class="fa-solid fa-chevron-up"></i>' +
352-
'</div>'
353-
);
350+
$statusBarPanelToggle = $('<div id="status-panel-toggle" class="indicator global-indicator"><i class="fa-solid fa-chevron-up"></i></div>')
351+
.attr('title', Strings.BOTTOM_PANEL_SHOW);
354352
$("#status-indicators").prepend($statusBarPanelToggle);
355353

356354
$statusBarPanelToggle.on("click", function () {

0 commit comments

Comments
 (0)