‘);
}
var islogin = 0;
var ischeck = 1;
var defaultname = “视野网友”;
var commentPost = function (form) {
var content = form.content.value;
if (content == ”) {
alert(‘评论内容不能为空’);
return false;
}
if (APP_URL.search(location.host) 0) {
$(‘.seccode_image’).click();
}
}, ‘json’);
return false;
}
var getSeccode = function () {
return ”;
}
$(function() {
cmstop.loginDialog();
$(‘.commentForm’).submit(function() {
if ($(this).find(‘textarea[name=content]’).val() == ”) {
alert(‘评论内容不能为空’);
return false;
}
if (islogin == 1 && !$.cookie(COOKIE_PRE+’auth’)) {
alert(‘请登录后再发表评论’);
return false;
}
return comment.post(this);
});
$.getJSON(APP_URL+’?app=comment&controller=review&action=ajax_allow_weibo&jsoncallback=?’, function(json){
if (json.state) {
if ($(‘.loginform-user-info’).find(‘.comment-postweibo’).length == 0) {
$(‘.loginform-user-info’).children(‘.seccode-area’).append(‘转发到微博’);
}
}
});
$(‘.seccode-area’).css(‘margin-right’, ’50px’);
});