From 7e87e69594041d3edc0478a17bfc454d3358388f Mon Sep 17 00:00:00 2001 From: sghsri Date: Sat, 8 Sep 2018 20:44:50 -0500 Subject: [PATCH] fixed enter remove bug --- js/content.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/content.js b/js/content.js index d917a631..0cb89699 100644 --- a/js/content.js +++ b/js/content.js @@ -80,7 +80,7 @@ $(function () { if (e.keyCode == 27) { $("#myModal").fadeOut(fadetime); $("#snackbar").attr("class", ""); - } else if (e.keyCode == 13) { + } else if (e.keyCode == 13 && $('#myModal').is(':visible')) { /*save course when hit enter*/ saveCourse(); } diff --git a/manifest.json b/manifest.json index fee0fbd2..2b5454c8 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "UT Registration Plus", - "version": "0.2.1", + "version": "0.2.2", "options_page": "options.html", "description": "Improves the course registration process at the University of Texas at Austin!", "permissions": ["tabs",