This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from lakshmivyas/feature/feedback-penalty
#346: Make feedback penalty configurable.
- Loading branch information
Showing
5 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +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.click () -> | ||
feedbackPenalty = $ ".field.feedback-viewing-penalty" | ||
feedbackPenaltyValue = feedbackPenalty.find "input" | ||
if feedbackRequired.is ':checked' | ||
feedbackPenaltyValue.val "100" | ||
feedbackPenalty.show() | ||
else | ||
feedbackPenaltyValue.val "0" | ||
feedbackPenalty.hide() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%# Copyright 2011-2014 Rice University. Licensed under the Affero General Public | ||
License version 3 or later. See the COPYRIGHT file for details. %> | ||
<%# TODO: @Kim %> | ||
|
||
<p> | ||
This field allows you to configure the credit penalty in percentage. For example, if | ||
you set a value of 25%, then students lose 25% of their credit if they fail to view | ||
their feedback on time. | ||
</p> |