"; comment_vote = new function comment_vote_class() { this.inheritFrom = widget; this.inheritFrom(); this.widgetName = 'comment_vote'; }; comment_vote.open = function(obj, label, id) { if (label == undefined) label = ''; var oVote = this.newWidget(obj); $('.vote_label', oVote).html(label); $(':input', oVote).val(label); if (vote_totals[id] == undefined) vote_totals[id] = { }; if (vote_totals[id][label] == undefined) vote_totals[id][label] = 0; comment_vote.update(oVote, id, this.total(id)); return false; }; comment_vote.total = function(id) { var sum = 0; for (lbl in vote_totals[id]) { if (vote_totals[id][lbl] != undefined) { sum += Math.abs(parseInt(vote_totals[id][lbl])); } } return sum; }; comment_vote.update = function(oVote, id, sum) { var label = $('.vote_label', oVote).html(); var score = parseInt(vote_totals[id][label]); if ((sum == 0) || (score == 0)) { $('.vote_bar_start', oVote).hide(); $('.vote_bar_mid', oVote).hide(); $('.vote_bar_end', oVote).hide(); oVote.show('fast'); } else { oVote.show('fast'); bar_fill = Math.floor((Math.abs(score) * 320) / sum); bar_mid = parseInt(bar_fill) - 6; $('.vote_score', oVote).html(score); } }; comment_vote.template = ""; comment_view = new function comment_view_class() { this.inheritFrom = widget; this.inheritFrom(); this.widgetName = 'comment_view'; }; var data = null; var comment_widget = null; function comment_close() { if (comment_widget == null) return false; comment_widget.remove(); comment_widget = null; return false; }; function comment_abuse_toggle(id) { $('.'+id+'text').toggle('slow'); return false; }; comment_view.open = function(obj, data, newflag) { var oView = this.makeWidget('li'); var vote_labels = $('.scores').html(); if (data != undefined) { this.dataToView(oView, data); if(comment.nest == undefined){ var depth = data.depth * 30; }else{ var depth = 0; } oView.find('.comment').css({marginLeft: depth}); oView.find('.comment_id').html(data.id); } var subject_new = ""; if(data.status == 'new'){ oView.find('.subject').css({color : '#c8c8c8'}); oView.find('.screenname').css({color : '#c8c8c8'}); oView.find('.message').css({color : '#c8c8c8'}); oView.find('.signature').css({color : '#c8c8c8'}); subject_new = " - Your comment has been submitted for review. This comment will not be visible untill approved by the moderator."; } if (newflag != undefined) { var subject = oView.find('.subject').html(); oView.find('.subject').html(subject + ' ' + newflag + subject_new + ''); } var wObj = null; var cList = $('#commentList').find('.comment_view').each(function(i) { var cObj = $(this); var pid = cObj.find('.parent_comment_id').html(); var id = cObj.find('.comment_id').html(); if ((pid == data.parent_comment_id) || (id == data.parent_comment_id)) wObj = cObj; }); var mtotal = $('.mTotal', this).html(); intm = parseInt(mtotal); var nmtotal = intm + 1; $('.mTotal', this).html(nmtotal); if (wObj == null) { oView.appendTo($('#commentList')); } else { oView.insertAfter(wObj); } $('.replyX', oView).show(); $('.abuse', oView).show(); $('.image', oView).show(); $('#vcontrol', oView).show(); $('.comment', oView).css({ 'border-top':'1px dashed #ffffff' }); oView.slideDown('medium'); return false; }; comment_view.template = ""; comment_page = new function comment_page_class() { this.inheritFrom = widget; this.inheritFrom(); this.widgetName = 'comment_page'; }; comment_page.template = "";
MyNorthwest.com - Purpose of Comments statement Bonneville Media encourages site users to express their opinions by posting comments. Our goal is to maintain a civil dialogue in which readers feel comfortable. At times, the comments can descend to personal attacks. Please do not engage in such behavior. We encourage your thoughtful comments which: have a positive and constructive tone, are on topic, are respectful toward others and their opinions. Bonneville reserves the right to remove comments which do not conform to these criteria.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.