Skip to content

Commit

Permalink
Remove jquery-bar-rating
Browse files Browse the repository at this point in the history
The fall-back is a select, which works _fine_. It is too much effort to
try to fix the import to use the right jQuery version.
  • Loading branch information
henrikhorluck committed Oct 18, 2023
1 parent 53b57b9 commit 63a2623
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion apps/feedback/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __init__(self, *args, **kwargs):

class RatingAnswerForm(AnswerForm):
answer = forms.ChoiceField(
widget=forms.Select(attrs={"class": "rating", "name": "rating"}),
choices=RATING_CHOICES,
)

Expand Down
9 changes: 0 additions & 9 deletions assets/feedback/answerRating.js

This file was deleted.

7 changes: 0 additions & 7 deletions assets/feedback/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import AnswerRating from './answerRating';
import FeedBackResults from './feedbackResults';
import './less/feedback.less';


// Check if bar rating should be initialized
const ratingWrapper = document.querySelector('.rating-wrapper');
if (ratingWrapper !== null) {
AnswerRating();
}

// Check if feed back results charts should be initialized
const feedBackResultsElement = document.getElementById('feedback-results');
if (feedBackResultsElement !== null) {
Expand Down
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"font-awesome": "^4.7.0",
"fuse.js": "^2.7.3",
"jquery": "2",
"jquery-bar-rating": "^1.2.1",
"js-cookie": "^3.0.5",
"masonry-layout": "^4.1.1",
"moment": "^2.29.2",
Expand Down

0 comments on commit 63a2623

Please sign in to comment.