mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 01:03:28 +09:00
포인트 리셋기능 추가. 글/댓글/파일을 첨부한 사용자만 대상이고 그 외 회원은 일단 지워지고 나서 캐시파일 생성시 포인트 입력됨 (회원가입점수는 이때 적용)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3386 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4d6afe35fa
commit
4c2eabe9fa
19 changed files with 260 additions and 2 deletions
|
|
@ -16,4 +16,36 @@ function exp_calc (form, reset) {
|
|||
point = eval("fo_obj.level_step_" + i)
|
||||
point.value = eval(exp.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 포인트를 전부 체크하여 재계산하는 action 호출
|
||||
**/
|
||||
function doPointRecal() {
|
||||
|
||||
var params = new Array();
|
||||
var response_tags = new Array('error','message','total', 'position');
|
||||
|
||||
exec_xml('point','procPointAdminReCal',params, completePointRecal, response_tags);
|
||||
}
|
||||
|
||||
function completePointRecal(ret_obj) {
|
||||
var total = ret_obj['total'];
|
||||
var message = ret_obj['message'];
|
||||
var position = ret_obj['position'];
|
||||
|
||||
if(position == total) {
|
||||
xInnerHtml('pointReCal', message);
|
||||
alert(message);
|
||||
location.reload();
|
||||
} else {
|
||||
xInnerHtml('pointReCal', message);
|
||||
|
||||
var params = new Array();
|
||||
params['position'] = position;
|
||||
params['total'] = total;
|
||||
var response_tags = new Array('error','message','total', 'position');
|
||||
|
||||
exec_xml('point','procPointAdminApplyPoint',params, completePointRecal, response_tags);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue