Skip to content

Commit

Permalink
Add support for comments 3.5.*
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Aug 24, 2021
1 parent 279f19c commit 8bf10dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ This document logs changes for the Reviews module

## 1.0.2

* Add rating field to admin CMS fields and summary fields
* Add rating field to admin CMS fields and summary fields

## 1.1.0

* Upgrade to Comments 3.5 support
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require": {
"silverstripe/framework": "~4.0",
"silverstripe/comments": "^3.3"
"silverstripe/comments": "^3.5"
},
"extra": {
"expose": [
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/ReviewsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public function CommentsForm()
// Check if enabled
$enabled = $owner->getCommentsEnabled();
if ($enabled && $owner->getCommentsOption('include_js')) {
Requirements::javascript('//code.jquery.com/jquery-3.3.1.min.js');
Requirements::javascript('silverstripe/comments:thirdparty/jquery-validate/jquery.validate.min.js');
Requirements::javascript('silverstripe/comments:client/dist/js/jquery.min.js');
Requirements::javascript('silverstripe/comments:client/dist/js/jquery-validation/jquery.validate.min.js');
Requirements::javascript('silverstripe/admin:client/dist/js/i18n.js');
Requirements::add_i18n_javascript('silverstripe/comments:javascript/lang');
Requirements::add_i18n_javascript('silverstripe/comments:client/lang');
Requirements::javascript('silverstripe/comments:client/dist/js/CommentsInterface.js');
}

Expand Down

0 comments on commit 8bf10dd

Please sign in to comment.