use triple equal signs according to style guide
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
This commit is contained in:
parent
0134ca51f1
commit
dd0b0d8711
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue