|
|
@ -342,13 +342,13 @@ function loadDevices(searchType, searchParam) {
|
|
|
|
'<span class="hidden-xs hidden-on-grid-view">Group</span></a>';
|
|
|
|
'<span class="hidden-xs hidden-on-grid-view">Group</span></a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// html +=
|
|
|
|
html +=
|
|
|
|
// '<a href="#" data-click-event="remove-form" class="btn padding-reduce-on-grid-view edit-device-link" '
|
|
|
|
'<a href="#" data-click-event="remove-form" class="btn padding-reduce-on-grid-view edit-device-link" '
|
|
|
|
// + 'data-deviceid="' + deviceIdentifier + '" data-devicetype="' + deviceType
|
|
|
|
+ 'data-deviceid="' + deviceIdentifier + '" data-devicetype="' + deviceType
|
|
|
|
// + '" data-devicename="' + row.name + '" data-placement="top" data-toggle="tooltip" data-original-title="Edit">'
|
|
|
|
+ '" data-devicename="' + row.name + '" data-placement="top" data-toggle="tooltip" data-original-title="Edit">'
|
|
|
|
// + '<span class="fw-stack"><i class="fw fw-circle-outline fw-stack-2x"></i>'
|
|
|
|
+ '<span class="fw-stack"><i class="fw fw-circle-outline fw-stack-2x"></i>'
|
|
|
|
// + '<i class="fw fw-edit fw-stack-1x"></i></span>'
|
|
|
|
+ '<i class="fw fw-edit fw-stack-1x"></i></span>'
|
|
|
|
// + '<span class="hidden-xs hidden-on-grid-view">Edit</span></a>';
|
|
|
|
+ '<span class="hidden-xs hidden-on-grid-view">Edit</span></a>';
|
|
|
|
var groupOwner = $('#group_owner').text();
|
|
|
|
var groupOwner = $('#group_owner').text();
|
|
|
|
if (groupId && groupOwner != "wso2.system.user") {
|
|
|
|
if (groupId && groupOwner != "wso2.system.user") {
|
|
|
|
html +=
|
|
|
|
html +=
|
|
|
@ -417,7 +417,7 @@ function loadDevices(searchType, searchParam) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function htmlspecialchars(text){
|
|
|
|
function htmlspecialchars(text) {
|
|
|
|
return jQuery('<div/>').text(text).html();
|
|
|
|
return jQuery('<div/>').text(text).html();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -461,9 +461,9 @@ function loadDevices(searchType, searchParam) {
|
|
|
|
attachDeviceEvents();
|
|
|
|
attachDeviceEvents();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($('.advance-search').length < 1){
|
|
|
|
if ($('.advance-search').length < 1) {
|
|
|
|
$(this).closest('.dataTables_wrapper').find('div[id$=_filter] input')
|
|
|
|
$(this).closest('.dataTables_wrapper').find('div[id$=_filter] input')
|
|
|
|
.after('<a href="'+context+'/devices/search"' +
|
|
|
|
.after('<a href="' + context + '/devices/search"' +
|
|
|
|
' class="advance-search add-padding-3x">Advance Search</a>');
|
|
|
|
' class="advance-search add-padding-3x">Advance Search</a>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|