audreycarlsen/gnomes — pull request #26 by audreycarlsen (2014-02-16 20:24:33+00:00)
Title: Ajax

I actually did some work this weekend!

Wrote logic so that you see a "check out" button if a tool isn't already checked out, a "return" button if you're the one who has the tool checked out, and "checkout out by ___" if you aren't the one who has the tool checked out. AJAX works, but if you click the button multiple times before the request has been made, things get a little screwy and I still need to figure that out. Also, I wrote in some logic so that you can see anything having to do with tools unless you're logged in, and wrote specs specs (suprise!!!) to reflect that change.