Browse Source

Fixed errors with orgs table and timeline table displaying null for homepage.

pull/11/head
Jeffery Russell 5 years ago
parent
commit
2bae794c2c
2 changed files with 19 additions and 12 deletions
  1. +5
    -1
      public/js/createOrgInfo.js
  2. +14
    -11
      public/js/profileTimeLine.js

+ 5
- 1
public/js/createOrgInfo.js View File

@ -13,7 +13,11 @@ function createOrgInfo(orgName, container) {
</div>"
$("#" + container).html(html);
$('#dataTable').DataTable();
setTimeout(function() {
$('#dataTable').DataTable();
}, 1500);
}, function(error) {
alert("Organization Does Not Exist");
window.location.href = "./GraphGenerator.html";

+ 14
- 11
public/js/profileTimeLine.js View File

@ -74,18 +74,21 @@ function timeLineClickEvent(properties)
" <div class=\"col-md-6\"><b>Liscense</b></div>\n" +
" <div class=\"col-md-6\">" +
item.license.name +
"</div>\n" +
" </li>\n" +
" <li class=\"row\">\n" +
" <div class=\"col-md-6\"><b>Home Page</b></div>\n" +
" <div class=\"col-md-6\">" +
"<a href='" + item.homepage + "'>" +item.homepage + "</a>" +
"</div>\n" +
" </li>\n" +
" </ul>\n" +
" </div>";
"</div></li>";
if(item.homepage !== null)
{
html +=
" <li class=\"row\">\n" +
" <div class=\"col-md-6\"><b>Home Page</b></div>\n" +
" <div class=\"col-md-6\">" +
"<a href='" + item.homepage + "'>" +item.homepage + "</a>" +
"</div>\n" +
" </li>\n" +
" </ul>\n";
}
html += "<div class=\"col-6\">\n" +
html += "</div><div class=\"col-6\">\n" +
" <ul class=\"list-group\">\n" +
" <li class=\"row\">\n" +
" <div class=\"col-md-6\"><b>Repository URL</b></div>\n" +

Loading…
Cancel
Save