mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
회원 가입을 닫아놓은 상태에서는 관리자도 회원 가입 기능을 테스트할 수 없는 문제를 해소하기 위해, 관리자가 설정한 특정한 문자열을 URL에 포함할 경우 회원 가입 페이지에 접근할 수 있도록 허용하는 옵션 추가
20 lines
489 B
JavaScript
20 lines
489 B
JavaScript
jQuery(function($){
|
|
|
|
$('input[name=enable_join]').on('change', function() {
|
|
if ($('#enable_join_only_with_key').is(':checked')) {
|
|
$('#enable_join_key').show();
|
|
} else {
|
|
$('#enable_join_key').hide();
|
|
}
|
|
});
|
|
|
|
$('.__sync').click(function (){
|
|
exec_xml(
|
|
'importer', // module
|
|
'procImporterAdminSync', // act
|
|
null,
|
|
function(ret){if(ret && (!ret.error || ret.error == '0'))alert(ret.message);}, // callback
|
|
resp = ['error','message'] // response tags
|
|
);
|
|
});
|
|
});
|