This item is currently not available.
Your review will appear on the site after it has been reviewed by our content department.
'; var dataString = $("#" + varFormName).serializeArray(); dataString.push({name:'storeLanguage', value: $('#storeLanguage').val()}); var localhostStore = document.domain.indexOf("localhost") != -1 ? "?storeId=" + $("#storeId").val() : ""; $.ajax({ url: '/store/ajaxProductReviewWrite' + localhostStore, type: 'post', cache: false, dataType: "json", data: dataString, success: function (data) { if (data.errors.length > 0) { var pfid = productCode; $('.ReviewError_' + pfid).remove(); if (data.errors.filter(function(unit){return unit.code == "NORATING"}).length > 0 ) { $('#starrating_' + pfid).append('

Please enter a value for overall rating.

'); } if (data.errors.filter(function(unit){return unit.code == "NOREVIEWER"}).length > 0) { $('#NameReview_' + pfid).parent().append('

Please enter a name.

'); } if (data.errors.filter(function(unit){return unit.code == "NOEMAIL"}).length > 0) { $('#EmailAddressReview_' + pfid).parent().append('

Please enter an email.

'); } //if (data.errors.filter(function(unit){return unit.code == "NOREVIEW"}).length > 0) { // CODE DOES NOT YET EXIST! // if (data.errors.filter(function(unit){return unit.code == "DUPLICATE"}).length > 0) { $('#TextAreaReview_' + pfid).parent().append('

You have already reviewed this product.

'); } } else { $('.ProductReviewWriteContent_ProductReviewListingComponent_ReviewListing_1').replaceWith(strThanksMsg); var customerReviewsTitle = '.ProductReviewListingComponent_ReviewListing_1_CustomerReviewTitle'; $(customerReviewsTitle).remove(); } }, error: function (data) { //do what? $('#EmailAddressReview').parent().append('

There was a problem with your submission, please try again later.

'); } }); }; var numStars = 5, fsAttrs = [ ["class", "FullStar"], ["style", "display:none;"], ["viewBox", "0 0 100 100"] ], esAttrs = [ ["class", "EndStar"], ["viewBox", "0 0 100 100"] ], fsPoly = [ ["points", "50.18 1.44 63.97 35.23 100.36 37.9 72.48 61.45 81.2 96.89 50.18 77.66 19.17 96.89 27.88 61.45 0 37.9 36.4 35.23 50.18 1.44"], ], esPoly = [ ["points", "50.18 1.44 63.97 35.23 100.36 37.9 72.48 61.45 81.2 96.89 50.18 77.66 19.17 96.89 27.88 61.45 0 37.9 36.4 35.23 50.18 1.44"], ], title = ["Poor", "Fair", "Average", "Good", "Excellent"]; /* BUILD DOM for Star Rating */ for (var i = 1; i tuples -> attrs var svgAttrs = svgObj.attrs; var svgPoly = svgObj.poly; var svgTitle = svgObj.title; //side effects svgAttrs.map(function(x) { svg.setAttribute(x[0], x[1]) }); var p = document.createElementNS(svgNS, 'polygon'); //map over svgObj.poly -> tuples -> polyAttrs svgPoly.map(function(x) { //side effects p.setAttribute(x[0], x[1]); }); var t = document.createElementNS(svgNS, 'title'); t.innerHTML = svgTitle; p.appendChild(t); svg.appendChild(p); return svg; //.cloneNode(true) }; var es = getStar({ "attrs": esAttrs, "poly": esPoly, "title": "" }); var fs = getStar({ "attrs": fsAttrs, "poly": fsPoly, "title": title[i-1] }); var rating = document.getElementById("rating_Z7CHMA001" + i); if (rating) { rating.appendChild(es); rating.appendChild(fs); } } }(window.merch = window.merch || {}, jQuery)); $(function() { merch.paginationAndSortReviews(window.merch, jQuery, "ProductReviewListingComponent_ReviewListing_1"); $("#formReviewWrite_ProductReviewListingComponent_ReviewListing_1").submit(function(event){ merch["reviews_ProductReviewListingComponent_ReviewListing_1"].reviewWrite("formReviewWrite_ProductReviewListingComponent_ReviewListing_1"); event.preventDefault(); }); if (typeof jQuery !== 'undefined') { $(document).ajaxStart(function () { $('#spinner').fadeIn(); }).ajaxStop(function () { $('#spinner').fadeOut(); }); } })