From 71ab6e65e4f4d3e390b5ad428cfcbe7099f3fbaf Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 5 Jan 2018 00:19:23 +0100 Subject: [PATCH] [TASK] Add title for icons --- lib/infobox/node.js | 2 +- lib/nodelist.js | 2 +- lib/simplenodelist.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 1de0ffe..2f0dcce 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -63,7 +63,7 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper', 'utils/no function renderNeighbourRow(n) { var icons = [V.h('span', { props: { className: 'icon ion-' + (n.link.type.indexOf('wifi') === 0 ? 'wifi' : 'share-alt'), title: _.t(n.link.type) } })]; if (helper.hasLocation(n.node)) { - icons.push(V.h('span', { props: { className: 'ion-location' } })); + icons.push(V.h('span', { props: { className: 'ion-location', title: _.t('location.location') } })); } return V.h('tr', [ diff --git a/lib/nodelist.js b/lib/nodelist.js index 383e15e..9792f42 100644 --- a/lib/nodelist.js +++ b/lib/nodelist.js @@ -51,7 +51,7 @@ define(['sorttable', 'snabbdom', 'helper'], function (SortTable, V, helper) { function renderRow(d) { var td0Content = ''; if (helper.hasLocation(d)) { - td0Content = V.h('span', { props: { className: 'icon ion-location' } }); + td0Content = V.h('span', { props: { className: 'icon ion-location', title: _.t('location.location') } }); } var td1Content = V.h('a', { diff --git a/lib/simplenodelist.js b/lib/simplenodelist.js index 25cb7c4..919e9c7 100644 --- a/lib/simplenodelist.js +++ b/lib/simplenodelist.js @@ -36,7 +36,7 @@ define(['moment', 'snabbdom', 'helper'], function (moment, V, helper) { var items = list.map(function (d) { var td0Content = ''; if (helper.hasLocation(d)) { - td0Content = V.h('span', { props: { className: 'icon ion-location' } }); + td0Content = V.h('span', { props: { className: 'icon ion-location', title: _.t('location.location') } }); } var td1Content = V.h('a', {