Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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
OpenEdx
edx-proctoring
Commits
309deb06
Commit
309deb06
authored
Aug 06, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move turn in exm button to the timer bar
parent
5d11719a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
22 deletions
+6
-22
edx_proctoring/static/proctoring/js/proctored_app.js
+0
-1
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
+2
-8
edx_proctoring/templates/proctoring/proctored-exam-status.underscore
+0
-13
edx_proctoring/templates/proctoring/seq_proctored_exam_ready_to_submit.html
+4
-0
No files found.
edx_proctoring/static/proctoring/js/proctored_app.js
View file @
309deb06
...
@@ -2,7 +2,6 @@ $(function() {
...
@@ -2,7 +2,6 @@ $(function() {
var
proctored_exam_view
=
new
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
({
var
proctored_exam_view
=
new
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
({
el
:
$
(
".proctored_exam_status"
),
el
:
$
(
".proctored_exam_status"
),
proctored_template
:
'#proctored-exam-status-tpl'
,
proctored_template
:
'#proctored-exam-status-tpl'
,
controls_template
:
'#proctored-exam-controls-tpl'
,
model
:
new
ProctoredExamModel
()
model
:
new
ProctoredExamModel
()
});
});
proctored_exam_view
.
render
();
proctored_exam_view
.
render
();
...
...
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
View file @
309deb06
...
@@ -11,7 +11,6 @@ var edx = edx || {};
...
@@ -11,7 +11,6 @@ var edx = edx || {};
this
.
$el
=
options
.
el
;
this
.
$el
=
options
.
el
;
this
.
model
=
options
.
model
;
this
.
model
=
options
.
model
;
this
.
templateId
=
options
.
proctored_template
;
this
.
templateId
=
options
.
proctored_template
;
this
.
examControlsTemplateId
=
options
.
controls_template
;
this
.
template
=
null
;
this
.
template
=
null
;
this
.
timerId
=
null
;
this
.
timerId
=
null
;
this
.
timerTick
=
0
;
this
.
timerTick
=
0
;
...
@@ -74,14 +73,9 @@ var edx = edx || {};
...
@@ -74,14 +73,9 @@ var edx = edx || {};
this
.
updateRemainingTime
(
this
);
this
.
updateRemainingTime
(
this
);
this
.
timerId
=
setInterval
(
this
.
updateRemainingTime
,
1000
,
this
);
this
.
timerId
=
setInterval
(
this
.
updateRemainingTime
,
1000
,
this
);
// put the exam controls (namely stop button)
// right after the sequence naviation ribbon
html
=
this
.
controls_template
(
this
.
model
.
toJSON
());
$
(
'.sequence-nav'
).
after
(
html
);
// Bind a click handler to the exam controls
// Bind a click handler to the exam controls
var
self
=
this
;
var
self
=
this
;
$
(
'.
proctored-exam-action-stop
'
).
click
(
function
(){
$
(
'.
exam-button-turn-in-exam
'
).
click
(
function
(){
$
(
window
).
unbind
(
'beforeunload'
,
self
.
unloadMessage
);
$
(
window
).
unbind
(
'beforeunload'
,
self
.
unloadMessage
);
$
.
ajax
({
$
.
ajax
({
...
@@ -96,7 +90,7 @@ var edx = edx || {};
...
@@ -96,7 +90,7 @@ var edx = edx || {};
}
}
});
});
});
});
$
(
'.proctored-exam-action-stop'
).
css
(
'cursor'
,
'pointer'
);
//
$('.proctored-exam-action-stop').css('cursor', 'pointer');
}
}
}
}
return
this
;
return
this
;
...
...
edx_proctoring/templates/proctoring/proctored-exam-status.underscore
deleted
100644 → 0
View file @
5d11719a
<div class="exam-timer">
<%- gettext("You are taking") %>
<a href="<%- interpolate(gettext('%(exam_url_path)s'), { exam_url_path: exam_url_path }, true)%>" >
<%- interpolate(gettext(' %(exam_display_name)s '), { exam_display_name: exam_display_name }, true) %>
</a>
<%- gettext(" exam as a proctored exam. Good Luck!") %>
<span id="time_remaining_id" class="pull-right">
<b>
</b>
</span>
</div>
edx_proctoring/templates/proctoring/seq_proctored_exam_ready_to_submit.html
View file @
309deb06
...
@@ -41,6 +41,10 @@
...
@@ -41,6 +41,10 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
'.exam-action-button'
).
click
(
$
(
'.exam-action-button'
).
click
(
function
(
event
)
{
function
(
event
)
{
// cancel any warning messages to end user about leaving proctored exam
$
(
window
).
unbind
(
'beforeunload'
);
var
action_url
=
$
(
this
).
data
(
'change-state-url'
);
var
action_url
=
$
(
this
).
data
(
'change-state-url'
);
var
exam_id
=
$
(
this
).
data
(
'exam-id'
);
var
exam_id
=
$
(
this
).
data
(
'exam-id'
);
var
action
=
$
(
this
).
data
(
'action'
)
var
action
=
$
(
this
).
data
(
'action'
)
...
...
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