HackBerkeley / habitat

Hackers@Berkeley's apps to help people hack better!
2 stars 5 forks source link

Random errors when trying to edit a submission #17

Closed negativetwelve closed 11 years ago

negativetwelve commented 11 years ago

When I try to edit my submission, the first thing that happens if that the title is reduced to the first word so if I edit something else and submit without checking things over, the title of my submission is changed to just the first word.

Second, I know this isn't implemented yet, but I can't add more users or fix ones that have been added to a project.

Just some things I noticed, feel free to ping me if you need screenshots. Otherwise, looks great guys! Great work!

Sumukh commented 11 years ago

So the text shows actually shows up, just the template inserts just the first word into the placeholder tag and puts the rest outside. - input ... value="Word1" Word2 Word3 Word4 placeholder="hack title" - Screenshot 2013-02-10 at 03 16 I don't know ejs that well, but it looks like <%= hack.title %> is the problem. Perhaps client side loading via Ajax would fix it?
https://github.com/HackBerkeley/habitat/blob/master/views/edit_hack.ejs (line 11)

syadlowsky commented 11 years ago

Sumukh, you want to take a shot at fixing it? I would say start by checking the quotes around the title. Let me know if you want to do it, otherwise I can do it.

syadlowsky commented 11 years ago

Closed by 00f3b86