(function () { function deleteDevice(page, id) { var msg = Globalize.translate('DeleteDeviceConfirmation'); Dashboard.confirm(msg, Globalize.translate('HeaderDeleteDevice'), function (result) { if (result) { Dashboard.showLoadingMsg(); ApiClient.ajax({ type: "DELETE", url: ApiClient.getUrl('Devices', { Id: id }) }).done(function () { loadData(page); }); } }); } function load(page, devices) { var html = ''; html += '
'; deviceHtml += d.AppName; deviceHtml += '
'; } if (d.LastUserName) { deviceHtml += ''; deviceHtml += Globalize.translate('DeviceLastUsedByUserName', d.LastUserName); deviceHtml += '
'; } deviceHtml += ''; deviceHtml += ''; deviceHtml += Globalize.translate('Delete'); deviceHtml += ''; deviceHtml += '