fixed enter remove bug

This commit is contained in:
sghsri
2018-09-08 20:44:50 -05:00
parent a9c3ad65f3
commit 7e87e69594
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ $(function () {
if (e.keyCode == 27) { if (e.keyCode == 27) {
$("#myModal").fadeOut(fadetime); $("#myModal").fadeOut(fadetime);
$("#snackbar").attr("class", ""); $("#snackbar").attr("class", "");
} else if (e.keyCode == 13) { } else if (e.keyCode == 13 && $('#myModal').is(':visible')) {
/*save course when hit enter*/ /*save course when hit enter*/
saveCourse(); saveCourse();
} }

View File

@@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "UT Registration Plus", "name": "UT Registration Plus",
"version": "0.2.1", "version": "0.2.2",
"options_page": "options.html", "options_page": "options.html",
"description": "Improves the course registration process at the University of Texas at Austin!", "description": "Improves the course registration process at the University of Texas at Austin!",
"permissions": ["tabs", "permissions": ["tabs",