Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ray's Personal API work #25

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

raybchoi
Copy link

@raybchoi raybchoi commented Sep 5, 2017

  • Please note that the about me and social network section does not work.
  • If there is an easier way to do toggles that would be great along with an easier way of showing the back button?

Copy link

@mnfmnfm mnfmnfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome.

const db = require('../models');


// GET renderSearchResults => on load of the page what to be able to render the search results page which loads the 10 people in the database
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code :(

// function that ONLY sends back ones that are NOT marked for delation => used for initial SRP
function searchResultsPage(req, res) {
console.log('SRP is getting data')
db.Profile.find({}, function(err, allProfiles) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db.Profile.find({markedForDeletion: false}, ...)

console.log('showOneProfile in controller had an error', err);
}
// send back the Profile info the DB via json file
res.json(foundProfile);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is off, should be one left

<div id="search-results"></div>

<!-- SRP starts here
<div class="container search">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so much commented out code

let newProfileHeaderTitle = $('.modal-input-for-profile-title').val();
let newProfileHeaderWorkpalce = $('.modal-input-for-profile-workPlace').val();
let newProfileHeaderQuote = $('.modal-input-for-profile-quote').val();
let newProfileHeaderImg ='/images/userimages/' + $('.modal-input-for-file').val().split('\\').pop();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't work for actually uploading images: you don't send the image file data to the server

$.ajax({
method: 'GET',
url: '/api/searchpage',
})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use a function for this

console.log('ERROR during the editedProfileHeaderData returned data', err);
});
// closes the save icon
$('.edit-save-header').toggle();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give one class to all of those elements called ".toggle" and then just take everything with that class and toggle it.

@MaluPalu
Copy link

MaluPalu commented Sep 8, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants