복사단 일정
'+calendar_nav+response.data["start"]+response.data["thead"]+response.data["tbody"]+response.data["end"]+'
';
jQuery('#'+mb_options["board_name"]+'_board_box').html(calendar_data);
}else{
showAlertPopup(response);
}
}
function selectTabMenu(obj,category,name,idx){
if(typeof(idx)==='undefined' || idx =='') idx = "1";
jQuery('.tab-menu-on').removeClass("tab-menu-on").addClass("tab-menu-off");
jQuery(obj).removeClass("tab-menu-off").addClass("tab-menu-on");
if(jQuery("input[name=category"+idx+"]")) jQuery("input[name=category"+idx+"]").val(category);
setCalendar(jQuery("#mb_calendar_date").val(),category);
}
function sendSearchCalendarData(data){
setCalendar(jQuery("#mb_calendar_date").val());
}
function sendSearchData(data){
var search_url = mb_urls["search"];
var params = jQuery('#'+mb_options["board_name"]+'_form_board_search').serialize();
if(typeof(data)!=='undefined') params = params+"&"+data;
if(params.indexOf('category')!=-1 && search_url.indexOf('category')!=-1) {
search_url = search_url.replace(/(category)(\d{1})=/g,"category_old$2=");
}
search_url = search_url+"&"+params;
moveURL(search_url);
}
function showDeleteConfirm(){
var check_count = jQuery(".mb-board input[name='check_array[]']").filter(":checked").length;
if(check_count > 0) {
showConfirmPopup(check_count+"개의 항목을 삭제하시겠습니까?", {"board_action":"multi_delete"}, sendBoardListData);
}else{
showAlertPopup({"code":"1000","message":"삭제할 항목을 선택해 주세요"});
}
}
function showMoveConfirm(type){
var check_count = jQuery(".mb-board input[name='check_array[]']").filter(":checked").length;
if(check_count > 0) {
if(type=="multi_copy"){
showConfirmPopup(check_count+"개의 항목을 복사하시겠습니까?", {"board_action":type}, sendBoardListData);
}else if(type=="multi_move"){
showConfirmPopup(check_count+"개의 항목을 이동하시겠습니까?", {"board_action":type}, sendBoardListData);
}
}else{
if(type=="multi_copy"){
showAlertPopup({"code":"1000","message":"복사할 항목을 선택해 주세요"});
}else if(type=="multi_move"){
showAlertPopup({"code":"1000","message":"이동할 항목을 선택해 주세요"});
}
}
}
function sendBoardListData(args){
if(args.board_action=="multi_modify"){
jQuery('#'+mb_options["board_name"]+'_form_board_list input[name=board_pid]').val(args.board_pid);
}
jQuery('#'+mb_options["board_name"]+'_form_board_list input[name=board_action]').val(args.board_action);
sendFormDataRequest(jQuery('#'+mb_options["board_name"]+'_form_board_list'), mb_urls["board_api"], sendBoardListDataHandler);
}
function sendBoardListDataHandler(response, state)
{
if(response.state == "success"){
if(typeof(response.message)!=='undefined' && response.message!="")
alert(response.message);
window.location.reload();
}else{
showAlertPopup(response);
}
}