Highlight input when encryption is off

This commit is contained in:
Alan Friedman 2016-01-11 13:06:18 -05:00
parent 85af185f97
commit 62d316a5d9
2 changed files with 6 additions and 0 deletions

View File

@ -392,11 +392,13 @@ $(function() {
$('.modal-footer button.encryption-inactive').show();
$('.modal-footer button.encryption-active').hide();
$('.chat .warning-sign').show();
$('.inputMessage').addClass('encryption-disabled');
} else {
encryptionEnabled = true;
$('.modal-footer button.encryption-active').show();
$('.modal-footer button.encryption-inactive').hide();
$('.chat .warning-sign').hide();
$('.inputMessage').removeClass('encryption-disabled');
}
});

View File

@ -183,4 +183,8 @@ input {
cursor: pointer;
color: red;
font-size: 24px;
}
.inputMessage.encryption-disabled {
background-color: rgba(254, 6, 6, 0.15);
}