summaryrefslogtreecommitdiffstats
path: root/js/phpvirtualbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/phpvirtualbox.js')
-rw-r--r--js/phpvirtualbox.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/phpvirtualbox.js b/js/phpvirtualbox.js
index abd7ca6..1b7225e 100644
--- a/js/phpvirtualbox.js
+++ b/js/phpvirtualbox.js
@@ -2359,8 +2359,9 @@ var vboxMedia = {
*/
mediumPrint: function(m,nosize,usehtml) {
var name = vboxMedia.getName(m);
+ var enc = vboxMedia.getEncryptionSettings(m);
if(nosize || !m || m.hostDrive) return name;
- return name + ' (' + (m.deviceType == 'HardDisk' ? (usehtml ? '<i>': '') + trans(m.type,'VBoxGlobal', null, 'MediumType') + (usehtml ? '</i>': '') + ', ': '') + vboxMbytesConvert(m.logicalSize) + ')';
+ return name + ' (' + (m.deviceType == 'HardDisk' ? trans(m.type,'VBoxGlobal', null, 'MediumType') + ', ' + (enc && enc.id ? trans('Encrypted', 'VBoxGlobal') + ', ' : '') : '') + vboxMbytesConvert(m.logicalSize) + ')';
},
/**