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
82b085b4
Commit
82b085b4
authored
Mar 26, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear batch enrollment and beta text fields upon button click
parent
ede21224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
lms/static/coffee/src/instructor_dashboard/membership.coffee
+18
-0
No files found.
lms/static/coffee/src/instructor_dashboard/membership.coffee
View file @
82b085b4
...
...
@@ -202,13 +202,22 @@ class BetaTesterBulkAddition
success
:
(
data
)
=>
@
display_response
data
error
:
std_ajax_err
=>
@
fail_with_error
gettext
"Error adding/removing users as beta testers."
# clear the input text field
clear_input
:
->
@
$emails_input
.
val
''
# default for the checkboxes should be checked
@
$checkbox_emailstudents
.
attr
(
'checked'
,
true
)
@
$checkbox_autoenroll
.
attr
(
'checked'
,
true
)
fail_with_error
:
(
msg
)
->
console
.
warn
msg
@
clear_input
()
@
$task_response
.
empty
()
@
$request_response_error
.
empty
()
@
$request_response_error
.
text
msg
display_response
:
(
data_from_server
)
->
@
clear_input
()
@
$task_response
.
empty
()
@
$request_response_error
.
empty
()
errors
=
[]
...
...
@@ -284,13 +293,22 @@ class BatchEnrollment
error
:
std_ajax_err
=>
@
fail_with_error
gettext
"Error enrolling/unenrolling users."
# clear the input text field
clear_input
:
->
@
$emails_input
.
val
''
# default for the checkboxes should be checked
@
$checkbox_emailstudents
.
attr
(
'checked'
,
true
)
@
$checkbox_autoenroll
.
attr
(
'checked'
,
true
)
fail_with_error
:
(
msg
)
->
console
.
warn
msg
@
clear_input
()
@
$task_response
.
empty
()
@
$request_response_error
.
empty
()
@
$request_response_error
.
text
msg
display_response
:
(
data_from_server
)
->
@
clear_input
()
@
$task_response
.
empty
()
@
$request_response_error
.
empty
()
...
...
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