Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove martor jquery #2386

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dmoj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@
MARTOR_ENABLE_CONFIGS = {
'imgur': 'true',
'mention': 'true',
'jquery': 'false',
'living': 'false',
'hljs': 'false',
}
Expand Down
1 change: 0 additions & 1 deletion martor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
settings, 'MARTOR_ENABLE_CONFIGS', {
'imgur': 'true', # to enable/disable imgur/custom uploader.
'mention': 'false', # to enable/disable mention
'jquery': 'true', # to include/revoke jquery (require for admin default django)
'living': 'false', # to enable/disable live updates in preview
'hljs': 'true', # to enable/disable hljs highlighting in preview
},
Expand Down
2 changes: 0 additions & 2 deletions martor/static/plugins/js/jquery.min.js

This file was deleted.

3 changes: 0 additions & 3 deletions martor/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class Media:
'martor/js/martor.js',
)

if MARTOR_ENABLE_CONFIGS.get('jquery') == 'true':
js = ('plugins/js/jquery.min.js',).__add__(js)


class AdminMartorWidget(MartorWidget, widgets.AdminTextareaWidget):
pass
Loading