Meetup.DomDeco.MemberRating=function(){bindMethods(this)};Meetup.DomDeco.MemberRating.prototype={decorate:function(el){if(!el){LOG.error("no element passed in to Meetup.DomDeco.MemberRating.decorate()");return}this.liEl=el;this.items=getElementsByTagAndClassName("A","editLink",el);for(var i=0;i<this.items.length;i++){connect(this.items[i],"onclick",this.showForm)}this.cancelLink=getFirstElementByTagAndClassName("A","cancelLink",el);if(this.cancelLink){connect(this.cancelLink,"onclick",this.hideForm)}},showForm:function(e){var thisForm=getElementsByTagAndClassName("DIV","mrForm",this.liEl);var thisDiv=getElementsByTagAndClassName("DIV","mReview",this.liEl);thisDiv[0].style.display="none";thisForm[0].style.display="block"},hideForm:function(e){var thisForm=getElementsByTagAndClassName("DIV","mrForm",this.liEl);var thisDiv=getElementsByTagAndClassName("DIV","mReview",this.liEl);thisDiv[0].style.display="block";thisForm[0].style.display="none"},items:null,liEl:null,cancelLink:null};Meetup.DomDeco.applyByTagAndClass("div","memberReview",Meetup.DomDeco.MemberRating);function updateReviewWidget(xhr){if(xhr.responseText.replace(/^\s*|\s*$/g,"").length>0){Meetup.DomDeco.applyByTagAndClass("div","memberReview",Meetup.DomDeco.MemberRating);Meetup.DomDeco.applyByTagAndClass("textarea","hasMaxLen",Meetup.DomDeco.CharCounter)}else{alert("Sorry, an error has occurred")}};