Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
#346: Fix cosmetic issues.
Browse files Browse the repository at this point in the history
- Stop getting confused between JS and CS.
- Fix copyrights on changed files.
  • Loading branch information
navilan committed Jun 13, 2014
1 parent 38c7f07 commit 738cdfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/assets/javascripts/learning_conditions.js.coffee
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion app/models/feedback_condition.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/feedback_conditions/_show.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
Expand Down

0 comments on commit 738cdfe

Please sign in to comment.