showReview && $this->allowReview): ?>
" . VmConfig::get ('reviews_maximum_comment_length', 2000) . ") { alert('" . addslashes (JText::sprintf ('COM_VIRTUEMART_REVIEW_ERR_COMMENT2_JS', VmConfig::get ('reviews_maximum_comment_length', 2000))) . "'); return false; } else { return true; } } function refresh_counter() { var form = document.getElementById('reviewform'); form.counter.value= form.comment.value.length; } jQuery(function($) { var steps = " . $maxrating . "; var parentPos= $('.write-reviews .ratingbox').position(); var boxWidth = $('.write-reviews .ratingbox').width();// nbr of total pixels var starSize = (boxWidth/steps); /*$('.write-reviews .ratingbox').mousemove( function(e){ var span = $(this).children(), ratingboxPos = $('.write-reviews .ratingbox').offset(); var dif = e.pageX-ratingboxPos.left; // nbr of pixels difRatio = Math.floor(dif/boxWidth* steps )+1; //step span.width(difRatio*starSize); $('#vote').val(difRatio); //console.log('note = ', difRatio); });*/ /*$('.stars').click(function(e) { var value = $(this).val(); $('#vote').val(value); });*/ });"; $document = JFactory::getDocument (); $document->addScriptDeclaration ($reviewJavascript); if ($this->showRating) { if ($this->allowRating && $review_editable) { ?>




@include("selectRating")


' . JText::_ ('COM_VIRTUEMART_DEAR') . $this->user->name . ',
'; echo JText::_ ('COM_VIRTUEMART_REVIEW_ALREADYDONE'); } ?>