mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding context for anchor links
This commit is contained in:
parent
ad92a5278e
commit
b0d32a140e
@ -258,9 +258,10 @@ function loadDevices(searchType, searchParam) {
|
|||||||
data: 'name',
|
data: 'name',
|
||||||
class: 'remove-padding icon-only content-fill',
|
class: 'remove-padding icon-only content-fill',
|
||||||
render: function (data, type, row, meta) {
|
render: function (data, type, row, meta) {
|
||||||
return '<a href="device/' + row.deviceType + '?id=' + row.deviceIdentifier
|
return '<a href="' + context + '/device/' + row.deviceType + '?id=' + row.deviceIdentifier
|
||||||
+ '"><div class="thumbnail icon"><img class="square-element text fw " '
|
+ '"><div class="thumbnail icon"><img class="square-element text fw " src="'
|
||||||
+ 'src="' + getDeviceTypeThumb(row.deviceType) + '"/></div></a>';
|
+ getDeviceTypeThumb(
|
||||||
|
row.deviceType) + '"/></div></a>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -337,14 +338,11 @@ function loadDevices(searchType, searchParam) {
|
|||||||
html = '';
|
html = '';
|
||||||
|
|
||||||
if (analyticsEnabled(row.deviceType)) {
|
if (analyticsEnabled(row.deviceType)) {
|
||||||
html +=
|
html += '<a href="' + context + '/device/' + deviceType + '/analytics?deviceId=' +
|
||||||
'<a href="device/' + deviceType + '/analytics?deviceId=' + deviceIdentifier + '&deviceName='
|
deviceIdentifier + '&deviceName=' + row.name + '" ' + 'data-click-event="remove-form"' +
|
||||||
+ row.name + '" ' +
|
' class="btn padding-reduce-on-grid-view"><span class="fw-stack">' +
|
||||||
'data-click-event="remove-form" class="btn padding-reduce-on-grid-view"><span class="fw-stack">'
|
'<i class="fw fw-ring fw-stack-2x"></i><i class="fw fw-statistics fw-stack-1x"></i></span>' +
|
||||||
+
|
'<span class="hidden-xs hidden-on-grid-view">Analytics</span>';
|
||||||
'<i class="fw fw-ring fw-stack-2x"></i><i class="fw fw-statistics fw-stack-1x"></i></span>'
|
|
||||||
+
|
|
||||||
'<span class="hidden-xs hidden-on-grid-view">Analytics</span>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!groupName || !groupId) && groupingEnabled(row.deviceType)) {
|
if ((!groupName || !groupId) && groupingEnabled(row.deviceType)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user