use triple equal signs according to style guide

Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
This commit is contained in:
Florian Schunk 2018-12-31 19:10:41 +01:00
parent 0134ca51f1
commit dd0b0d8711
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
// Enter
if(event.keyCode === 13) {
event.stopImmediatePropagation();
if (self.enterCallback != null) {
if (self.enterCallback !== null) {
self.enterCallback();
event.preventDefault();
return false;

View File

@ -331,7 +331,7 @@ var OCdialogs = {
}
});
$input.keypress(function(event) {
if (event.keyCode == 13 || event.which == 13) {
if (event.keyCode === 13 || event.which === 13) {
event.stopImmediatePropagation();
event.preventDefault();
$form.submit();