mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-25 13:26:26 +00:00
Highlight input when encryption is off
This commit is contained in:
parent
85af185f97
commit
62d316a5d9
@ -392,11 +392,13 @@ $(function() {
|
|||||||
$('.modal-footer button.encryption-inactive').show();
|
$('.modal-footer button.encryption-inactive').show();
|
||||||
$('.modal-footer button.encryption-active').hide();
|
$('.modal-footer button.encryption-active').hide();
|
||||||
$('.chat .warning-sign').show();
|
$('.chat .warning-sign').show();
|
||||||
|
$('.inputMessage').addClass('encryption-disabled');
|
||||||
} else {
|
} else {
|
||||||
encryptionEnabled = true;
|
encryptionEnabled = true;
|
||||||
$('.modal-footer button.encryption-active').show();
|
$('.modal-footer button.encryption-active').show();
|
||||||
$('.modal-footer button.encryption-inactive').hide();
|
$('.modal-footer button.encryption-inactive').hide();
|
||||||
$('.chat .warning-sign').hide();
|
$('.chat .warning-sign').hide();
|
||||||
|
$('.inputMessage').removeClass('encryption-disabled');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -183,4 +183,8 @@ input {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputMessage.encryption-disabled {
|
||||||
|
background-color: rgba(254, 6, 6, 0.15);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user