rn false } if ($("#ccooeditor").val()== "" || $("#ccooeditor").val().length > 60000) { alert('内容不能大于60000个字符'); editor.focus(); return false } var title="温馨提示"; var html="
"; showdialog(title, html, "340px"); $('#form').ajaxSubmit(function(data) { if (data) { var arrRs=eval("(" + unescape(data) + ")"); $(".topic").html(arrRs.message); if (arrRs.status== "1") { apiclose(); setTimeout("window.parent.location.href='" + arrRs.Url + "'", 1000); // var msg=''; if (arrRs.reMsg != '') { msg += arrRs.reMsg; } else { msg += '回复成功'; } if (arrRs.integral > 0) { msg += ',成长值:+' + arrRs.integral + ''; } if (arrRs.coin > 0) { msg += ',城市币:+' + arrRs.coin + ''; } $.dialog.tips(msg, 3, "success.gif"); } else { $(".topic").html(arrRs.message); $("#EditSubmit").removeAttr("disabled"); } } else { alert("服务器正忙,请稍等几秒钟,再试尝试发布数据!"); } return false; }); return false; }); }); // 分享 $(function() { $('.share_v5 a').click(function() { $.ajax({ type: 'GET', url: '/forum/ajax_bbs.asp', data: { action: 'share', //topicid: 10747168, topicid: 0, n: Math.random() }, dataType: 'json', success: function(data) { var msg=''; if (data.coin > 0) { msg='城市币:+' + data.coin + ',成长值:+' + data.integral + ''; } if (msg != '') { alert('完成分享,' + msg + ''); } } }) }); });