mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
일반 테스트 발송시 다음과 같이 문제 발생시 해당 문제를 파악할 수 없습니다. 문제 : https://xetown.com/questions/1212317 이는 JS의 ajax전송 방식을 사용함에 따라 알림 생성시 백그라운드에서 실행이후 새로고침 하는 형태이다 보니 해당 알림과정에서 에러가 발생시 해당 에러를 확인하는 부분이 js에 요청한 쪽에서 받게 됩니다. 이 경우 사용자가 테스트가 정상적으로 되지 않앗을 때 왜 오류가 발생되는지 알기 어렵습니다. 따라서 테스트 목적에 부합한 방법으로 수정합니다.
31 lines
958 B
JavaScript
31 lines
958 B
JavaScript
function doDisplaySkinColorset(sel, colorset)
|
|
{
|
|
var skin = sel.options[sel.selectedIndex].value;
|
|
|
|
var params = new Array();
|
|
params["skin"] = skin;
|
|
params["colorset"] = colorset;
|
|
|
|
var response_tags = ['error', 'message', 'colorset_list'];
|
|
|
|
exec_xml('ncenterlite', 'getColorsetList', params, completeGetSkinColorset, response_tags, params);
|
|
}
|
|
|
|
function completeGetSkinColorset(ret_obj, response_tags, params, fo_obj)
|
|
{
|
|
var sel = get_by_id('fo_ncenterlite').colorset;
|
|
var length = sel.options.length;
|
|
var selected_colorset = params['colorset'];
|
|
for(var i=0;i<length;i++) sel.remove(0);
|
|
|
|
var colorset_list = ret_obj['colorset_list'].split("\n");
|
|
var selected_index = 0;
|
|
for(var i=0;i<colorset_list.length;i++) {
|
|
var tmp = colorset_list[i].split('|@|');
|
|
if(selected_colorset && selected_colorset==tmp[0]) selected_index = i;
|
|
var opt = new Option(tmp[1], tmp[0], false, false);
|
|
sel.options.add(opt);
|
|
}
|
|
|
|
sel.selectedIndex = selected_index;
|
|
}
|