Skip to content

Commit

Permalink
No need to allow selecting answers when just viewing a response.
Browse files Browse the repository at this point in the history
  • Loading branch information
huerlisi committed Oct 29, 2010
1 parent 7fa0dc2 commit e392a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/responses/_show.html.haml
@@ -1,7 +1,7 @@
- @question = @response.question
%h2= @question.title

%ol#answers
%ol.possible_answers
- for @possible_answer in @question.possible_answers
%li.subbox[@possible_answer]{:class => [@possible_answer.correctness, @response.try(:possible_answer) == @possible_answer ? 'selected' : nil], :data => {:id => @possible_answer.id}}
.score{:class => @possible_answer.correctness}= @possible_answer.score
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/application.js
Expand Up @@ -9,7 +9,7 @@ selectables.click(function(element) {
});

function addSelectableBehaviour() {
var selectables = $('.possible_answers');
var selectables = $('form .possible_answers');
selectables.css('cursor', "pointer");
selectables.selectable({
stop: function(event, ui) {
Expand Down

0 comments on commit e392a8f

Please sign in to comment.