Browse Source

Created default enter actions for the text boxes on the graphs page.

pull/11/head
Jeffery Russell 5 years ago
parent
commit
a1035f4655
2 changed files with 20 additions and 2 deletions
  1. +20
    -1
      public/GraphGenerator.html
  2. +0
    -1
      public/js/createOrgRepoGraph.js

+ 20
- 1
public/GraphGenerator.html View File

@ -121,7 +121,26 @@
</body>
</html>
<script>
function fetchUserInput() {
$('#txtOrgname').keydown(function(event)
{
if(event.keyCode == 13)
{
event.preventDefault();
toOrgRepos();
}
});
$('#txtUsername').keydown(function(event)
{
if(event.keyCode == 13)
{
event.preventDefault();
toFriends();
}
});
function fetchUserInput()
{
const inputedName = $("#txtUsername").val();
if(inputedName === "")

+ 0
- 1
public/js/createOrgRepoGraph.js View File

@ -52,7 +52,6 @@ function alreadyInGraph(userID)
*/
function edgeInGraph(id1, id2)
{
console.log("edge check");
for(var i = 0;i < edges.length; i++)
{
if(edges[i].from === id1 && edges[i].to === id2)

Loading…
Cancel
Save