Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9f04769c
Commit
9f04769c
authored
Apr 10, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better confirmation for flagging
parent
a64d57ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+13
-1
lms/templates/peer_grading/peer_grading_problem.html
+7
-2
No files found.
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
View file @
9f04769c
...
...
@@ -185,6 +185,11 @@ class @PeerGradingProblem
@
question_header
=
$
(
'.question-header'
)
@
question_header
.
click
@
collapse_question
@
flag_submission_confirmation
=
$
(
'.flag-submission-confirmation'
)
@
flag_submission_confirmation_button
=
$
(
'.flag-submission-confirmation-button'
)
@
flag_submission_removal_button
=
$
(
'.flag-submission-removal-button'
)
@
flag_submission_confirmation_button
.
click
@
close_dialog_box
@
flag_submission_removal_button
.
click
@
remove_flag
@
grading_wrapper
=
$
(
'.grading-wrapper'
)
@
calibration_feedback_panel
=
$
(
'.calibration-feedback'
)
...
...
@@ -290,9 +295,16 @@ class @PeerGradingProblem
#
##########
remove_flag
:
()
=>
@
flag_student_checkbox
.
removeAttr
(
"checked"
)
@
close_dialog_box
()
close_dialog_box
:
()
=>
$
(
".flag-submission-confirmation"
).
dialog
(
'close'
)
flag_box_checked
:
()
=>
if
@
flag_student_checkbox
.
is
(
':checked'
)
$
(
".flag-submission-confirmation"
).
dialog
()
$
(
".flag-submission-confirmation"
).
dialog
(
{
height
:
400
,
width
:
400
}
)
# called after we perform an is_student_calibrated check
calibration_check_callback
:
(
response
)
=>
...
...
lms/templates/peer_grading/peer_grading_problem.html
View file @
9f04769c
...
...
@@ -85,8 +85,13 @@
<!-- Flag submission confirmation dialog -->
<section
class=
"flag-submission-confirmation"
>
<h4>
Are you sure that you want to flag this submission?
</h4>
<br/>
Please only flag explicit or pornographic content.
<p>
Please only flag explicit or pornographic content. Click the button below if you understand this and still want to flag the submission.
</p>
<div>
<input
type=
"button"
class=
"flag-submission-removal-button"
value=
"Remove Flag"
name=
"calibration-interstitial-page-button"
/>
<input
type=
"button"
class=
"flag-submission-confirmation-button"
value=
"Keep Flag"
name=
"calibration-interstitial-page-button"
/>
</div>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment