stu-salsbury/marklogic-samplestack — pull request #1 by wooldridge (2014-08-19 22:10:21+00:00)
Title: browser/feature(voting): methods for vote up/down on questions/answers

Putting voteUp/voteDown methods in the ssQnaDoc object wasn't working for me because there was no access to the $scope for that view from there. So they are in the qnaDoc view controller.

Vote methods need to determine if caller is a question or answer. We can get this via a class check via jqLite, which is a bit chained but I think it's fine. Other options are separate methods for questions and answers or adding distinguishing classes to clicked elements.

Currently, the canVote methods are not working. These are based on parseVote(), which I find hard to understand, could use some comments.