[TASK] Add title for icons

This commit is contained in:
Xaver Maierhofer 2018-01-05 00:19:23 +01:00
parent 1673fe1248
commit 71ab6e65e4
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
3 changed files with 3 additions and 3 deletions

View File

@ -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', [

View File

@ -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', {

View File

@ -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', {