--- panes/mediumEncryptionPasswords.html.orig 2017-07-27 16:54:58 UTC +++ panes/mediumEncryptionPasswords.html @@ -15,6 +15,7 @@ Status ID Password + Clear on suspend
@@ -37,9 +38,12 @@ function vboxMediumEncryptionPasswordAdd .append($('') .append( valid ? '*****' : - $('').attr({'type':'password','style':'width:95%'}).addClass('vboxText') + $('').attr({'type':'password','style':'width:90%'}).addClass('vboxText') ) ) + .append($('') + .append($('').attr({'type':'checkbox', 'checked':'checked'})) + ) .appendTo($('#vboxMediumEncryptionPasswordList')) } @@ -55,7 +59,8 @@ function vboxMediumEncryptionPasswordsGe continue; encryptionPWs.push({ 'id': $(rowlist[i]).data('vboxEncryptionId'), - 'password': $(rowlist[i]).find('input').first().val() + 'password': $(rowlist[i]).find('input[type="password"]').first().val(), + 'clearOnSuspend': $(rowlist[i]).find('input[type="checkbox"]').first().is(':checked') ? '1' : '0' }); } @@ -75,4 +80,4 @@ function vboxMediumEncryptionPasswordsVa }); return valid; } - \ No newline at end of file +