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
ab945243
Commit
ab945243
authored
Oct 26, 2016
by
Ned Batchelder
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13837 from edx/release
Release to master
parents
413cd6e6
afcf8921
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
58 additions
and
28 deletions
+58
-28
cms/static/cms/js/require-config.js
+1
-1
cms/static/cms/js/spec/main.js
+1
-1
cms/static/cms/js/spec/main_squire.js
+1
-1
common/lib/xmodule/xmodule/css/capa/display.scss
+1
-1
common/static/common/js/discussion/mathjax_include.js
+1
-1
common/templates/mathjax_include.html
+1
-1
common/test/acceptance/pages/lms/teams.py
+2
-2
common/test/acceptance/tests/lms/test_teams.py
+28
-1
lms/static/js/instructor_dashboard/membership.js
+21
-18
lms/static/lms/js/spec/main.js
+1
-1
No files found.
cms/static/cms/js/require-config.js
View file @
ab945243
...
...
@@ -95,7 +95,7 @@
// end of Annotation tool files
// externally hosted files
mathjax
:
'//cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
mathjax
:
'//cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
'youtube'
:
[
// youtube URL does not end in '.js'. We add '?noext' to the path so
// that require.js adds the '.js' to the query component of the URL,
...
...
cms/static/cms/js/spec/main.js
View file @
ab945243
...
...
@@ -55,7 +55,7 @@
'domReady'
:
'xmodule_js/common_static/js/vendor/domReady'
,
'URI'
:
'xmodule_js/common_static/js/vendor/URI.min'
,
'mock-ajax'
:
'xmodule_js/common_static/js/vendor/mock-ajax'
,
mathjax
:
'//cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
mathjax
:
'//cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
'youtube'
:
'//www.youtube.com/player_api?noext'
,
'coffee/src/ajax_prefix'
:
'xmodule_js/common_static/coffee/src/ajax_prefix'
,
'js/spec/test_utils'
:
'js/spec/test_utils'
...
...
cms/static/cms/js/spec/main_squire.js
View file @
ab945243
...
...
@@ -48,7 +48,7 @@
'draggabilly'
:
'xmodule_js/common_static/js/vendor/draggabilly'
,
'domReady'
:
'xmodule_js/common_static/js/vendor/domReady'
,
'URI'
:
'xmodule_js/common_static/js/vendor/URI.min'
,
mathjax
:
'//cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
mathjax
:
'//cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
'youtube'
:
'//www.youtube.com/player_api?noext'
,
'coffee/src/ajax_prefix'
:
'xmodule_js/common_static/coffee/src/ajax_prefix'
},
...
...
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
ab945243
...
...
@@ -975,7 +975,7 @@ div.problem .action {
}
.submit
{
@include
margin-right
(
$baseline
/
2
);
float
:
left
;
@include
float
(
left
)
;
}
}
...
...
common/static/common/js/discussion/mathjax_include.js
View file @
ab945243
...
...
@@ -42,6 +42,6 @@ if (typeof MathJax === 'undefined') {
});
};
};
vendorScript
.
src
=
'https://cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG'
;
vendorScript
.
src
=
'https://cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG'
;
document
.
body
.
appendChild
(
vendorScript
);
}
common/templates/mathjax_include.html
View file @
ab945243
...
...
@@ -76,4 +76,4 @@
<!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates.
It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of
MathJax extension libraries -->
<script
type=
"text/javascript"
src=
"https://cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG"
></script>
common/test/acceptance/pages/lms/teams.py
View file @
ab945243
...
...
@@ -6,7 +6,7 @@ Teams pages.
from
common.test.acceptance.pages.lms.course_page
import
CoursePage
from
common.test.acceptance.pages.lms.discussion
import
InlineDiscussionPage
from
common.test.acceptance.pages.common.paging
import
PaginatedUIMixin
from
common.test.acceptance.pages.common.utils
import
confirm_prompt
from
common.test.acceptance.pages.common.utils
import
confirm_prompt
,
click_css
from
common.test.acceptance.pages.lms.fields
import
FieldsMixin
...
...
@@ -502,7 +502,7 @@ class TeamPage(CoursePage, PaginatedUIMixin, BreadcrumbsMixin):
def
click_leave_team_link
(
self
,
remaining_members
=
0
,
cancel
=
False
):
""" Click on Leave Team link"""
self
.
q
(
css
=
'.leave-team-link'
)
.
first
.
click
(
)
click_css
(
self
,
'.leave-team-link'
,
require_notification
=
False
)
confirm_prompt
(
self
,
cancel
,
require_notification
=
False
)
if
cancel
is
False
:
...
...
common/test/acceptance/tests/lms/test_teams.py
View file @
ab945243
...
...
@@ -1042,8 +1042,21 @@ class CreateTeamTest(TeamFormActions):
Then I should see the error message and highlighted fields.
"""
self
.
verify_and_navigate_to_create_team_page
()
self
.
team_management_page
.
submit_form
()
# `submit_form` clicks on a button, but that button doesn't always
# have the click event handler registered on it in time. That's why
# this test is flaky. Unfortunately, I don't know of a straightforward
# way to write something that waits for that event handler to be bound
# to the button element. So I used time.sleep as well, even though
# the bok choy docs explicitly ask us not to:
# http://bok-choy.readthedocs.io/en/latest/guidelines.html
# Sorry! For the story to address this anti-pattern, see TNL-5820
time
.
sleep
(
0.5
)
self
.
team_management_page
.
submit_form
()
self
.
team_management_page
.
wait_for
(
lambda
:
self
.
team_management_page
.
validation_message_text
,
"Validation message text never loaded."
)
self
.
assertEqual
(
self
.
team_management_page
.
validation_message_text
,
'Check the highlighted fields below and try again.'
...
...
@@ -1150,6 +1163,13 @@ class CreateTeamTest(TeamFormActions):
self
.
assertTrue
(
self
.
browse_teams_page
.
get_pagination_header_text
()
.
startswith
(
'Showing 0 out of 0 total'
))
self
.
verify_and_navigate_to_create_team_page
()
# We add a sleep here to allow time for the click event handler to bind
# to the cancel button. Using time.sleep in bok-choy tests is,
# generally, an anti-pattern. So don't copy this :).
# For the story to address this anti-pattern, see TNL-5820
time
.
sleep
(
0.5
)
self
.
team_management_page
.
cancel_team
()
self
.
assertTrue
(
self
.
browse_teams_page
.
is_browser_on_page
())
...
...
@@ -1940,6 +1960,13 @@ class TeamPageTest(TeamsTabBase):
}
]
with
self
.
assert_events_match_during
(
event_filter
=
self
.
only_team_events
,
expected_events
=
expected_events
):
# I think we're seeing the same problem that we're seeing in
# CreateTeamTest.test_user_can_see_error_message_for_missing_data.
# We click on the "leave team" link after it's loaded, but before
# its JavaScript event handler is added. Adding this sleep gives
# enough time for that event handler to bind to the link. Sorry!
# For the story to address this anti-pattern, see TNL-5820
time
.
sleep
(
0.5
)
self
.
team_page
.
click_leave_team_link
()
self
.
assert_team_details
(
num_members
=
0
,
is_member
=
False
)
self
.
assertTrue
(
self
.
team_page
.
join_team_button_present
)
...
...
lms/static/js/instructor_dashboard/membership.js
View file @
ab945243
...
...
@@ -12,7 +12,11 @@ such that the value can be defined later than this assignment (file load order).
(
function
()
{
'use strict'
;
var
AuthListWidget
,
BatchEnrollment
,
BetaTesterBulkAddition
,
MemberListWidget
,
Membership
,
emailStudents
,
plantTimeout
,
statusAjaxError
;
MemberListWidget
,
Membership
,
emailStudents
,
plantTimeout
,
statusAjaxError
,
/* eslint-disable */
__hasProp
=
{}.
hasOwnProperty
,
__extends
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
__hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
};
/* eslint-enable */
plantTimeout
=
function
()
{
return
window
.
InstructorDashboard
.
util
.
plantTimeout
.
apply
(
this
,
arguments
);
...
...
@@ -38,10 +42,8 @@ such that the value can be defined later than this assignment (file load order).
add_btn_label
:
'Add Member'
,
add_handler
:
function
()
{}
});
templateHtml
=
$
(
'#member-list-widget-template'
).
html
();
edx
.
HtmlUtils
.
setHtml
(
this
.
$container
,
window
.
Mustache
.
render
(
templateHtml
,
edx
.
HtmlUtils
.
HTML
(
memberListParams
))
);
templateHtml
=
window
.
Mustache
.
render
(
$
(
'#member-list-widget-template'
).
html
(),
memberListParams
);
edx
.
HtmlUtils
.
setHtml
(
this
.
$container
,
edx
.
HtmlUtils
.
HTML
(
templateHtml
));
this
.
$
(
'input[type="button"].add'
).
click
(
function
()
{
condition
=
typeof
memberListParams
.
add_handler
===
'function'
;
return
condition
?
memberListParams
.
add_handler
(
memberlistwidget
.
$
(
'.add-field'
).
val
())
:
undefined
;
...
...
@@ -64,7 +66,7 @@ such that the value can be defined later than this assignment (file load order).
item
=
rowArray
[
i
];
$td
=
$
(
'<td>'
);
if
(
item
instanceof
jQuery
)
{
edx
.
HtmlUtils
.
append
(
$td
,
item
);
edx
.
HtmlUtils
.
append
(
$td
,
edx
.
HtmlUtils
.
HTML
(
item
)
);
}
else
{
$td
.
text
(
item
);
}
...
...
@@ -86,13 +88,14 @@ such that the value can be defined later than this assignment (file load order).
return
memberListWidget
;
}());
AuthListWidget
=
(
function
()
{
function
authListWidget
(
$container
,
rolename
,
$errorSection
)
{
AuthListWidget
=
(
function
(
_super
)
{
__extends
(
AuthListWidget
,
_super
);
// eslint-disable-line no-use-before-define
function
AuthListWidget
(
$container
,
rolename
,
$errorSection
)
{
// eslint-disable-line no-shadow
var
msg
,
authlistwidget
=
this
;
this
.
rolename
=
rolename
;
this
.
$errorSection
=
$errorSection
;
authListWidget
.
super
.
constructor
.
call
(
this
,
$container
,
{
AuthListWidget
.
__super__
.
constructor
.
call
(
this
,
$container
,
{
// eslint-disable-line no-underscore-dangle
title
:
$container
.
data
(
'display-name'
),
info
:
$container
.
data
(
'info-text'
),
labels
:
[
gettext
(
'Username'
),
gettext
(
'Email'
),
gettext
(
'Revoke access'
)],
...
...
@@ -112,13 +115,13 @@ such that the value can be defined later than this assignment (file load order).
this
.
reload_list
();
}
a
uthListWidget
.
prototype
.
re_view
=
function
()
{
A
uthListWidget
.
prototype
.
re_view
=
function
()
{
this
.
clear_errors
();
this
.
clear_input
();
return
this
.
reload_list
();
};
a
uthListWidget
.
prototype
.
add_handler
=
function
(
input
)
{
A
uthListWidget
.
prototype
.
add_handler
=
function
(
input
)
{
var
authlistwidgetaddhandler
=
this
;
if
((
input
!=
null
)
&&
input
!==
''
)
{
return
this
.
modify_member_access
(
input
,
'allow'
,
function
(
error
)
{
...
...
@@ -134,7 +137,7 @@ such that the value can be defined later than this assignment (file load order).
}
};
a
uthListWidget
.
prototype
.
reload_list
=
function
()
{
A
uthListWidget
.
prototype
.
reload_list
=
function
()
{
var
authlistwidgetreloadlist
=
this
;
return
this
.
get_member_list
(
function
(
error
,
memberList
)
{
if
(
error
!==
null
)
{
...
...
@@ -163,19 +166,19 @@ such that the value can be defined later than this assignment (file load order).
});
};
a
uthListWidget
.
prototype
.
clear_errors
=
function
()
{
A
uthListWidget
.
prototype
.
clear_errors
=
function
()
{
var
ref
,
result
;
result
=
(
this
.
$error_section
)
!=
null
?
ref
.
text
(
''
)
:
undefined
;
return
result
;
};
a
uthListWidget
.
prototype
.
show_errors
=
function
(
msg
)
{
A
uthListWidget
.
prototype
.
show_errors
=
function
(
msg
)
{
var
ref
,
result
;
result
=
(
this
.
$error_section
)
!=
null
?
ref
.
text
(
msg
)
:
undefined
;
return
result
;
};
a
uthListWidget
.
prototype
.
get_member_list
=
function
(
cb
)
{
A
uthListWidget
.
prototype
.
get_member_list
=
function
(
cb
)
{
var
authlistwidgetgetmemberlist
=
this
;
return
$
.
ajax
({
type
:
'POST'
,
...
...
@@ -190,7 +193,7 @@ such that the value can be defined later than this assignment (file load order).
});
};
a
uthListWidget
.
prototype
.
modify_member_access
=
function
(
uniqueStudentIdentifier
,
action
,
cb
)
{
A
uthListWidget
.
prototype
.
modify_member_access
=
function
(
uniqueStudentIdentifier
,
action
,
cb
)
{
var
authlistwidgetmemberaccess
=
this
;
return
$
.
ajax
({
type
:
'POST'
,
...
...
@@ -210,7 +213,7 @@ such that the value can be defined later than this assignment (file load order).
});
};
a
uthListWidget
.
prototype
.
member_response
=
function
(
data
)
{
A
uthListWidget
.
prototype
.
member_response
=
function
(
data
)
{
var
msg
;
this
.
clear_errors
();
this
.
clear_input
();
...
...
@@ -233,7 +236,7 @@ such that the value can be defined later than this assignment (file load order).
}
};
return
a
uthListWidget
;
return
A
uthListWidget
;
}(
MemberListWidget
));
this
.
AutoEnrollmentViaCsv
=
(
function
()
{
...
...
lms/static/lms/js/spec/main.js
View file @
ab945243
...
...
@@ -51,7 +51,7 @@
'squire'
:
'xmodule_js/common_static/js/vendor/Squire'
,
'jasmine-imagediff'
:
'xmodule_js/common_static/js/vendor/jasmine-imagediff'
,
'domReady'
:
'xmodule_js/common_static/js/vendor/domReady'
,
mathjax
:
'//cdn.mathjax.org/mathjax/2.
6
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
mathjax
:
'//cdn.mathjax.org/mathjax/2.
7
-latest/MathJax.js?config=TeX-MML-AM_SVG&delayStartupUntil=configured'
,
// eslint-disable-line max-len
'youtube'
:
'//www.youtube.com/player_api?noext'
,
'coffee/src/ajax_prefix'
:
'xmodule_js/common_static/coffee/src/ajax_prefix'
,
'js/instructor_dashboard/student_admin'
:
'js/instructor_dashboard/student_admin'
,
...
...
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