diff --git a/submodules/devices/devices.css b/submodules/devices/devices.css index fce1e71..ca5a183 100644 --- a/submodules/devices/devices.css +++ b/submodules/devices/devices.css @@ -300,6 +300,10 @@ margin: 10px 25px; } +.voip-edit-device-popup .edit-device .content #form_device .controls .text { + padding-top: 5px; +} + .voip-edit-device-popup .edit-device .content #form_device .displayed-realm { line-height: 30px; font-weight: bold; diff --git a/submodules/devices/devices.js b/submodules/devices/devices.js index 34bc4f6..25ee95e 100644 --- a/submodules/devices/devices.js +++ b/submodules/devices/devices.js @@ -394,19 +394,21 @@ define(function(require){ } }); - templateDevice.find('#delete_device').on('click', function() { - var deviceId = $(this).parents('.edit-device').data('id'); + if (type !== 'mobile') { + templateDevice.find('#delete_device').on('click', function() { + var deviceId = $(this).parents('.edit-device').data('id'); - monster.ui.confirm(self.i18n.active().devices.confirmDeleteDevice, function() { - self.devicesDeleteDevice(deviceId, function(device) { - popup.dialog('close').remove(); + monster.ui.confirm(self.i18n.active().devices.confirmDeleteDevice, function() { + self.devicesDeleteDevice(deviceId, function(device) { + popup.dialog('close').remove(); - toastr.success(monster.template(self, '!' + self.i18n.active().devices.deletedDevice, { deviceName: device.name })); + toastr.success(monster.template(self, '!' + self.i18n.active().devices.deletedDevice, { deviceName: device.name })); - callbackDelete && callbackDelete(device); + callbackDelete && callbackDelete(device); + }); }); }); - }); + } templateDevice.find('.actions .cancel-link').on('click', function() { popup.dialog('close').remove(); diff --git a/views/devices-mobile.html b/views/devices-mobile.html index deb78c5..2683e5a 100644 --- a/views/devices-mobile.html +++ b/views/devices-mobile.html @@ -21,13 +21,17 @@ @@ -39,28 +43,28 @@
- +
{{name}}
- +
{{mobile.mdn}}
- +
{{sip.username}}
- +
{{sip.password}}
@@ -193,10 +197,6 @@
- {{#if id}} - {{ i18n.devices.deleteDevice }} - {{/if}} -
{{ i18n.cancel }}