
var htmlvalue = "<%= j render :partial => 'admins/forum_moderators/shared/form'%>";
$("#admin-forum-managers-content").html(htmlvalue)
$('#admin-managers-modal').modal('show')

function search_forum_users(target) {
  var t_value = $("#"+ target).val()
  $.ajax({
    type: "POST",
    url:'/admins/forum_sections/<%= @forum_section.id %>/forum_moderators/search_user?user_name='+t_value,
    dataType:'JSON',
    success: function (data) {
      if(data.html.length > 0){
        $("#forum-moderators-show").removeClass("none").html(data.html)
        $("#has-none-moderators").addClass("none")
      }else{
        $("#has-none-moderators").removeClass("none").html("没有找到该用户")
      }
    }
    }
  );
}