This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-github-graphs
mirror of
https://github.com/jrtechs/github-graphs.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
1
Wiki
Activity
Browse Source
Created default enter actions for the text boxes on the graphs page.
pull/11/head
Jeffery Russell
5 years ago
parent
2bae794c2c
commit
a1035f4655
2 changed files
with
20 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+20
-1
public/GraphGenerator.html
+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
)
Write
Preview
Loading…
Cancel
Save