Refactor and improve js_utils helpers
- Rename escape_json_dumps to dump_js_escaped_json - Rename escape_js_string to js_escaped_string - Update js_escaped_string to output empty string for None - Introduce dump_html_escaped_json - Move dump_js_escaped_json after the pipe as new best practice - Introduce additional uses of helpers - Introduce new djangolib directory and move js_utils
Showing
- cms/djangoapps/contentstore/views/course.py 3 additions, 3 deletionscms/djangoapps/contentstore/views/course.py
- cms/djangoapps/contentstore/views/entrance_exam.py 2 additions, 2 deletionscms/djangoapps/contentstore/views/entrance_exam.py
- cms/djangoapps/contentstore/views/error.py 2 additions, 2 deletionscms/djangoapps/contentstore/views/error.py
- cms/djangoapps/contentstore/views/organization.py 2 additions, 2 deletionscms/djangoapps/contentstore/views/organization.py
- cms/djangoapps/contentstore/views/tests/test_certificates.py 18 additions, 1 deletioncms/djangoapps/contentstore/views/tests/test_certificates.py
- cms/templates/base.html 6 additions, 6 deletionscms/templates/base.html
- cms/templates/certificates.html 14 additions, 4 deletionscms/templates/certificates.html
- cms/templates/container.html 7 additions, 5 deletionscms/templates/container.html
- cms/templates/course_info.html 8 additions, 7 deletionscms/templates/course_info.html
- cms/templates/course_outline.html 5 additions, 2 deletionscms/templates/course_outline.html
- cms/templates/export.html 8 additions, 6 deletionscms/templates/export.html
- cms/templates/group_configurations.html 10 additions, 2 deletionscms/templates/group_configurations.html
- cms/templates/import.html 7 additions, 2 deletionscms/templates/import.html
- cms/templates/library.html 3 additions, 3 deletionscms/templates/library.html
- cms/templates/manage_users.html 9 additions, 6 deletionscms/templates/manage_users.html
- cms/templates/manage_users_lib.html 9 additions, 6 deletionscms/templates/manage_users_lib.html
- cms/templates/settings.html 7 additions, 2 deletionscms/templates/settings.html
- cms/templates/settings_advanced.html 7 additions, 2 deletionscms/templates/settings_advanced.html
- cms/templates/settings_graders.html 8 additions, 2 deletionscms/templates/settings_graders.html
- cms/templates/studio_xblock_wrapper.html 7 additions, 5 deletionscms/templates/studio_xblock_wrapper.html
Loading
Please register or sign in to comment