Communication module mobile support enhancement

쪽지 모듈의 모바일 지원을 향상시켰습니다.
이 PR 이후에 회원 모듈의 모바일 지원을 향상 시키면 XE의 모바일 지원 수준이 한 단계 상승하게 됩니다.
꼭 반영되길 바랍니다!

## 수정 내용

* 커뮤니케이션 애드온의 회원 메뉴 설정 기능을 모듈의 트리거로 처리하여 조금 더 직관적으로 설정하게 됨.
* 기본값은 모듈이 동작 하도록 함.
* 모듈을 켜고 끌 수 있도록 함.
* 모바일에서 친구 추가를 할 수 있게 함.
* 스타일 아주 조금 다듬음.
This commit is contained in:
MinSoo Kim 2015-05-25 02:32:47 +09:00
parent ecce7e5efd
commit e75983768f
14 changed files with 428 additions and 85 deletions

View file

@ -15,11 +15,18 @@
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal">
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal" id="communication_module_config_form">
<input type="hidden" name="module" value="communication" />
<input type="hidden" name="act" value="procCommunicationAdminInsertConfig">
<input type="hidden" name="xe_validator_id" value="modules/communication/tpl/index/1" />
<div class="x_control-group module_io">
<label for="able_module" class="x_control-label">{$lang->communication_io}</label>
<div class="x_controls" style="padding-top:3px">
<input type="checkbox" name="able_module" id="able_module" value="Y" checked="checked"|cond="!$communication_config->able_module||$communication_config->able_module=='Y'" />
<span class="x_help-inline">{$lang->about_communication_io}</span>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="editor_skin">{$lang->editor_skin}</label>
<div class="x_controls">
@ -105,10 +112,24 @@
</div>
</form>
<script>
jQuery(function() {
jQuery(function() {
doGetSkinColorset("{$communication_config->skin}", 'P');
doGetSkinColorset("{$communication_config->mskin}", 'M');
jQuery('.grant_default').change( function(event) { doShowGrantZone(); } );
doShowGrantZone()
});
</script>
jQuery(function($){
var communication_module_cfg = $('#communication_module_config_form .x_control-group:not(.module_io)');
if(!$('#able_module').is(':checked'))
{
communication_module_cfg.hide();
}
$('#able_module').change(function(){
if($(this).is(':checked')){
communication_module_cfg.slideDown(200);
} else {
communication_module_cfg.slideUp(200);
}
});
});
</script>