|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="project_r_h">
|
|
|
|
<div class="project_r_h">
|
|
|
|
<h2 class="project_h2"><%= l(:label_invite_join) %></h2>
|
|
|
|
<h2 class="project_h2"><%= l(:label_invite_join) %></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -68,5 +67,32 @@
|
|
|
|
var text=$(label).text();
|
|
|
|
var text=$(label).text();
|
|
|
|
$(label).attr("title",text);
|
|
|
|
$(label).attr("title",text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function nh_show_err_message(msg){
|
|
|
|
|
|
|
|
$("#RSide>.flash").remove();
|
|
|
|
|
|
|
|
$("#RSide").prepend('<div class="flash error" id="flash_error">'+msg+'</div>');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$('#new_membership').submit(function(){
|
|
|
|
|
|
|
|
var user_ischeck=false;
|
|
|
|
|
|
|
|
$("input[name='membership[user_ids][]']").each(function(){
|
|
|
|
|
|
|
|
if($(this).prop('checked')){
|
|
|
|
|
|
|
|
user_ischeck=true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if(user_ischeck==false){
|
|
|
|
|
|
|
|
nh_show_err_message('请选择用户!');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var role_ischeck=false;
|
|
|
|
|
|
|
|
$("input[name='membership[role_ids][]']").each(function(){
|
|
|
|
|
|
|
|
if($(this).prop('checked')){
|
|
|
|
|
|
|
|
role_ischeck=true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if(role_ischeck==false){
|
|
|
|
|
|
|
|
nh_show_err_message('请选择角色!');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|