diff --git a/app/assets/javascripts/learning_conditions.js.coffee b/app/assets/javascripts/learning_conditions.js.coffee index 97bc1419..eb194c47 100644 --- a/app/assets/javascripts/learning_conditions.js.coffee +++ b/app/assets/javascripts/learning_conditions.js.coffee @@ -1,17 +1,17 @@ -# Copyright 2011-2012 Rice University. Licensed under the Affero General Public +# Copyright 2011-2014 Rice University. Licensed under the Affero General Public # License version 3 or later. See the COPYRIGHT file for details. # Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ $ () -> - feedbackRequired = $(".field.feedback-required input") + feedbackRequired = $ ".field.feedback-required input" feedbackRequired.click () -> feedbackPenalty = $ ".field.feedback-viewing-penalty" feedbackPenaltyValue = feedbackPenalty.find "input" if feedbackRequired.is ':checked' - feedbackPenaltyValue.val("100"); + feedbackPenaltyValue.val "100" feedbackPenalty.show() else - feedbackPenaltyValue.val("0"); + feedbackPenaltyValue.val "0" feedbackPenalty.hide() diff --git a/app/models/feedback_condition.rb b/app/models/feedback_condition.rb index f34020bb..956cda19 100644 --- a/app/models/feedback_condition.rb +++ b/app/models/feedback_condition.rb @@ -1,4 +1,4 @@ -# Copyright 2011-2012 Rice University. Licensed under the Affero General Public +# Copyright 2011-2014 Rice University. Licensed under the Affero General Public # License version 3 or later. See the COPYRIGHT file for details. class FeedbackCondition < ActiveRecord::Base diff --git a/app/views/feedback_conditions/_show.html.erb b/app/views/feedback_conditions/_show.html.erb index eb9f83f2..3020aa8b 100644 --- a/app/views/feedback_conditions/_show.html.erb +++ b/app/views/feedback_conditions/_show.html.erb @@ -1,4 +1,4 @@ -<%# Copyright 2011-2012 Rice University. Licensed under the Affero General Public +<%# Copyright 2011-2014 Rice University. Licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file for details. %> <% assignment_event = FeedbackCondition::AvailabilityEvent[feedback_condition.availability_event].to_s.humanize.downcase %>