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
a00275ac
Commit
a00275ac
authored
Oct 18, 2012
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #938 from MITx/fix/cdodge/pre-push-tweeks
Fix/cdodge/pre push tweeks
parents
556bb61c
8ad26fc2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
cms/djangoapps/contentstore/views.py
+4
-0
cms/static/js/base.js
+1
-1
common/static/js/vendor/date.js
+0
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
a00275ac
...
@@ -826,6 +826,10 @@ def remove_user(request, location):
...
@@ -826,6 +826,10 @@ def remove_user(request, location):
if
user
is
None
:
if
user
is
None
:
return
create_json_response
(
'Could not find user by email address
\'
{0}
\'
.'
.
format
(
email
))
return
create_json_response
(
'Could not find user by email address
\'
{0}
\'
.'
.
format
(
email
))
# make sure we're not removing ourselves
if
user
.
id
==
request
.
user
.
id
:
raise
PermissionDenied
()
remove_user_from_course_group
(
request
.
user
,
user
,
location
,
STAFF_ROLE_NAME
)
remove_user_from_course_group
(
request
.
user
,
user
,
location
,
STAFF_ROLE_NAME
)
return
create_json_response
()
return
create_json_response
()
...
...
cms/static/js/base.js
View file @
a00275ac
...
@@ -185,7 +185,7 @@ function getEdxTimeFromDateTimeVals(date_val, time_val, format) {
...
@@ -185,7 +185,7 @@ function getEdxTimeFromDateTimeVals(date_val, time_val, format) {
time_val
=
'00:00'
;
time_val
=
'00:00'
;
// Note, we are using date.js utility which has better parsing abilities than the built in JS date parsing
// Note, we are using date.js utility which has better parsing abilities than the built in JS date parsing
date
=
Date
.
parse
(
date_val
+
" "
+
time_val
);
date
=
Date
.
parse
(
date_val
+
" "
+
time_val
);
if
(
format
==
null
)
if
(
format
==
null
)
format
=
'yyyy-MM-ddTHH:mm'
;
format
=
'yyyy-MM-ddTHH:mm'
;
...
...
common/static/js/vendor/date.js
View file @
a00275ac
This diff is collapsed.
Click to expand it.
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