更新代码

liuyizhou
louant 9 years ago
parent 9a7b32c935
commit ea6047c114

@ -96,13 +96,11 @@
$("#error").html("").hide(); $("#error").html("").hide();
check_pass = true; check_pass = true;
name = $("textarea[name='forum[name]']").val().trim(); name = $("textarea[name='forum[name]']").val().trim();
alert(name)
if( name != ""){ if( name != ""){
$.get( $.get(
'<%= check_forum_name_forums_path %>', '<%= check_forum_name_forums_path %>',
{"forum_name":encodeURIComponent(name)}, {"forum_name":encodeURIComponent(name)},
function(data){ function(data){
alert(data)
if( data == 'true'){ if( data == 'true'){
$("#error").html("贴吧名称已经存在").show(); $("#error").html("贴吧名称已经存在").show();
check_pass = false; check_pass = false;

Loading…
Cancel
Save