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

Changed star rating plugin to jQuery Raty | Added success msg on comment update and delete #185

Merged
merged 3 commits into from
Mar 8, 2021
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
12 changes: 0 additions & 12 deletions modules/productcomments/js/jquery.rating.pack.js

This file was deleted.

14 changes: 11 additions & 3 deletions modules/productcomments/js/productcomments.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@
* International Registered Trademark & Property of PrestaShop SA
*/
$(document).ready(function(){
$('input.star').rating();
$('.auto-submit-star').rating();

$('.raty_star').raty({
starType : 'i',
starOff: 'icon-star-o',
starOn: 'icon-star',
halfShow: false,
score: 3,
hints: null,
readOnly: function() {
return $(this).hasClass('readonly');
}
});
$('#new_comment_tab_btn').on('click', function(e){
e.preventDefault();
$('.new_comment_form_outer').show();
Expand Down
29 changes: 29 additions & 0 deletions modules/productcomments/lib/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* 2010-2021 Webkul.
*
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through this link for complete license : https://store.webkul.com/license.html
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
*
* @author Webkul IN <[email protected]>
* @copyright 2010-2021 Webkul IN
* @license https://store.webkul.com/license.html
*/

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');

header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');

header('Location: ../../../');
exit;
Loading