Skip to content

Commit

Permalink
searching for projects now works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jflores1997 committed Jun 24, 2018
1 parent 3104bd4 commit 9ceff2a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions js/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ function dashSearch() {
var searchId = $("#dashSearchId").val();
if (searchId) {
database.has_project(searchId, function(bool) {
var result;
var error = false;
if (bool) {
result = searchId;
database.get_project_thumbnail(searchId, function(path) {
var results = {};
results.path = path;
results.proj_name = searchId;
insertSearchResults(false, results);
});
} else {
error = true;
result = "No Projects Found: " + searchId;
insertSearchResults(true, "No Projects Found: " + searchId);
}
insertSearchResults(error, result);
//loadDetail(searchId);
});

Expand Down

0 comments on commit 9ceff2a

Please sign in to comment.