diff --git a/changelog.md b/changelog.md index 0d28c46..5e3dff0 100644 --- a/changelog.md +++ b/changelog.md @@ -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 \ No newline at end of file +* Add rating field to admin CMS fields and summary fields + +## 1.1.0 + +* Upgrade to Comments 3.5 support \ No newline at end of file diff --git a/composer.json b/composer.json index 68b9af4..41b3dd1 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require": { "silverstripe/framework": "~4.0", - "silverstripe/comments": "^3.3" + "silverstripe/comments": "^3.5" }, "extra": { "expose": [ diff --git a/src/Extensions/ReviewsExtension.php b/src/Extensions/ReviewsExtension.php index 048c730..27e1513 100644 --- a/src/Extensions/ReviewsExtension.php +++ b/src/Extensions/ReviewsExtension.php @@ -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'); }