// fix javascript error in product comment
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{*
|
{*
|
||||||
* 2007-2011 PrestaShop
|
* 2007-2011 PrestaShop
|
||||||
*
|
*
|
||||||
* NOTICE OF LICENSE
|
* NOTICE OF LICENSE
|
||||||
*
|
*
|
||||||
@@ -32,12 +32,14 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$('input[@type=radio].star').rating();
|
$('input[@type=radio].star').rating();
|
||||||
$('.auto-submit-star').rating(callback: function(value, link));
|
$('.auto-submit-star').rating({
|
||||||
|
callback: function(value, link) {}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//close comment form
|
//close comment form
|
||||||
function closeCommentForm(){
|
function closeCommentForm(){
|
||||||
$('#sendComment').slideUp('fast');
|
$('#sendComment').slideUp('fast');
|
||||||
@@ -53,23 +55,23 @@
|
|||||||
'warningNumber': 40,
|
'warningNumber': 40,
|
||||||
'displayFormat': '#left'
|
'displayFormat': '#left'
|
||||||
};
|
};
|
||||||
|
|
||||||
$('#commentContent').textareaCount(limitInputText);
|
$('#commentContent').textareaCount(limitInputText);
|
||||||
|
|
||||||
$('#new_comment_btn').fancybox({
|
$('#new_comment_btn').fancybox({
|
||||||
'hideOnContentClick': false,
|
'hideOnContentClick': false,
|
||||||
'onClosed': function(){
|
'onClosed': function(){
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
$('a[href=#idTab5]').click(function(){
|
$('a[href=#idTab5]').click(function(){
|
||||||
$('*[id^="idTab"]').addClass('block_hidden_only_for_screen');
|
$('*[id^="idTab"]').addClass('block_hidden_only_for_screen');
|
||||||
$('div#idTab5').removeClass('block_hidden_only_for_screen');
|
$('div#idTab5').removeClass('block_hidden_only_for_screen');
|
||||||
|
|
||||||
$('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected');
|
$('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected');
|
||||||
$('a[href="#idTab5"]').addClass('selected');
|
$('a[href="#idTab5"]').addClass('selected');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#submitMessage').click(function(){
|
$('#submitMessage').click(function(){
|
||||||
var datas = [];
|
var datas = [];
|
||||||
$('#fancybox-content').find('input, textarea, select').each(function(index){
|
$('#fancybox-content').find('input, textarea, select').each(function(index){
|
||||||
@@ -88,7 +90,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#submitNewMessage').click(function(){
|
$('#submitNewMessage').click(function(){
|
||||||
var datas = [];
|
var datas = [];
|
||||||
$('#fancybox-content').find('input, textarea, select').each(function(index){
|
$('#fancybox-content').find('input, textarea, select').each(function(index){
|
||||||
@@ -106,7 +108,7 @@
|
|||||||
$.fancybox.close();
|
$.fancybox.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="comments_advices">
|
<div class="comments_advices">
|
||||||
{if $nbComments != 0}
|
{if $nbComments != 0}
|
||||||
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
|
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
|
||||||
@@ -145,7 +147,7 @@
|
|||||||
{$product->description_short}
|
{$product->description_short}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="new_comment_form_content">
|
<div class="new_comment_form_content">
|
||||||
<p class="intro_form">{l s='Write your review' mod='productcomments'}</p>
|
<p class="intro_form">{l s='Write your review' mod='productcomments'}</p>
|
||||||
{if $criterions|@count > 0}
|
{if $criterions|@count > 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user