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> </body>
</html> </html>
<script> <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(); const inputedName = $("#txtUsername").val();
if(inputedName === "") if(inputedName === "")

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

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

Loading…
Cancel
Save