Commit 68645db3 by cahrens

Reduce dependency on courseware_js.

TNL-2945
parent a7c06fd2
...@@ -381,6 +381,7 @@ def account_settings_context(request): ...@@ -381,6 +381,7 @@ def account_settings_context(request):
'platform_name': settings.PLATFORM_NAME, 'platform_name': settings.PLATFORM_NAME,
'user_accounts_api_url': reverse("accounts_api", kwargs={'username': user.username}), 'user_accounts_api_url': reverse("accounts_api", kwargs={'username': user.username}),
'user_preferences_api_url': reverse('preferences_api', kwargs={'username': user.username}), 'user_preferences_api_url': reverse('preferences_api', kwargs={'username': user.username}),
'disable_courseware_js': True,
} }
if third_party_auth.is_enabled(): if third_party_auth.is_enabled():
......
...@@ -92,6 +92,7 @@ def learner_profile_context(logged_in_user, profile_username, user_is_staff, bui ...@@ -92,6 +92,7 @@ def learner_profile_context(logged_in_user, profile_username, user_is_staff, bui
'country_options': list(countries), 'country_options': list(countries),
'language_options': settings.ALL_LANGUAGES, 'language_options': settings.ALL_LANGUAGES,
'platform_name': microsite.get_value('platform_name', settings.PLATFORM_NAME), 'platform_name': microsite.get_value('platform_name', settings.PLATFORM_NAME),
} },
'disable_courseware_js': True,
} }
return context return context
...@@ -102,7 +102,8 @@ class TeamsDashboardView(View): ...@@ -102,7 +102,8 @@ class TeamsDashboardView(View):
"languages": settings.ALL_LANGUAGES, "languages": settings.ALL_LANGUAGES,
"countries": list(countries), "countries": list(countries),
"username": user.username, "username": user.username,
"privileged": has_discussion_privileges(user, course_key) "privileged": has_discussion_privileges(user, course_key),
"disable_courseware_js": True,
} }
return render_to_response("teams/teams.html", context) return render_to_response("teams/teams.html", context)
......
...@@ -1248,6 +1248,11 @@ main_vendor_js = base_vendor_js + [ ...@@ -1248,6 +1248,11 @@ main_vendor_js = base_vendor_js + [
base_application_js = [ base_application_js = [
'js/src/utility.js', 'js/src/utility.js',
'js/src/logger.js', 'js/src/logger.js',
'js/my_courses_dropdown.js',
'js/src/string_utils.js',
'js/form.ext.js',
'js/src/ie_shim.js',
'js/src/accessibility_tools.js',
] ]
dashboard_js = ( dashboard_js = (
...@@ -1267,14 +1272,9 @@ instructor_dash_js = ( ...@@ -1267,14 +1272,9 @@ instructor_dash_js = (
# JavaScript modules. # JavaScript modules.
student_account_js = [ student_account_js = [
'js/utils/edx.utils.validate.js', 'js/utils/edx.utils.validate.js',
'js/form.ext.js',
'js/my_courses_dropdown.js',
'js/toggle_login_modal.js', 'js/toggle_login_modal.js',
'js/sticky_filter.js', 'js/sticky_filter.js',
'js/query-params.js', 'js/query-params.js',
'js/src/accessibility_tools.js',
'js/src/ie_shim.js',
'js/src/string_utils.js',
'js/student_account/models/LoginModel.js', 'js/student_account/models/LoginModel.js',
'js/student_account/models/RegisterModel.js', 'js/student_account/models/RegisterModel.js',
'js/student_account/models/PasswordResetModel.js', 'js/student_account/models/PasswordResetModel.js',
...@@ -1289,14 +1289,9 @@ student_account_js = [ ...@@ -1289,14 +1289,9 @@ student_account_js = [
] ]
verify_student_js = [ verify_student_js = [
'js/form.ext.js',
'js/my_courses_dropdown.js',
'js/toggle_login_modal.js', 'js/toggle_login_modal.js',
'js/sticky_filter.js', 'js/sticky_filter.js',
'js/query-params.js', 'js/query-params.js',
'js/src/accessibility_tools.js',
'js/src/ie_shim.js',
'js/src/string_utils.js',
'js/verify_student/models/verification_model.js', 'js/verify_student/models/verification_model.js',
'js/verify_student/views/error_view.js', 'js/verify_student/views/error_view.js',
'js/verify_student/views/image_input_view.js', 'js/verify_student/views/image_input_view.js',
...@@ -1487,14 +1482,9 @@ PIPELINE_JS = { ...@@ -1487,14 +1482,9 @@ PIPELINE_JS = {
# Application will contain all paths not in courseware_only_js # Application will contain all paths not in courseware_only_js
'source_filenames': ['js/xblock/core.js'] + sorted(common_js) + sorted(project_js) + base_application_js + [ 'source_filenames': ['js/xblock/core.js'] + sorted(common_js) + sorted(project_js) + base_application_js + [
'js/form.ext.js',
'js/my_courses_dropdown.js',
'js/toggle_login_modal.js', 'js/toggle_login_modal.js',
'js/sticky_filter.js', 'js/sticky_filter.js',
'js/query-params.js', 'js/query-params.js',
'js/src/accessibility_tools.js',
'js/src/ie_shim.js',
'js/src/string_utils.js',
], ],
'output_filename': 'js/lms-application.js', 'output_filename': 'js/lms-application.js',
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment