mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#122 에디터모듈의 editor.js에서 위지윅에디터에 내용이 없을 경우 sync를 맞추지 않던 버그 수정.
서명 내용을 모두 지웠을때 서명이 제거되지 않던 문제도 같이 해결 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2422 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f06a43f148
commit
e8d1700ca4
2 changed files with 4 additions and 3 deletions
|
|
@ -117,7 +117,7 @@ function _editorSync() {
|
|||
var field = _editorSyncList[i].field;
|
||||
var upload_target_srl = _editorSyncList[i].upload_target_srl;
|
||||
var content = editorGetContent(upload_target_srl);
|
||||
if(typeof(content)=='undefined'||!content) continue;
|
||||
if(typeof(content)=='undefined') continue;
|
||||
field.value = content;
|
||||
}
|
||||
setTimeout(_editorSync, 1000);
|
||||
|
|
|
|||
|
|
@ -829,10 +829,11 @@
|
|||
* @brief 서명을 파일로 저장
|
||||
**/
|
||||
function putSignature($member_srl, $signature) {
|
||||
$signature = removeHackTag($signature);
|
||||
$signature = trim(removeHackTag($signature));
|
||||
$path = sprintf('files/member_extra_info/signature/%s/', getNumberingPath($member_srl));
|
||||
$filename = sprintf('%s%d.signature.php', $path, $member_srl);
|
||||
if(!trim($signature) || trim(strtolower($signature))=='<br>') return @unlink($filename);
|
||||
|
||||
if(!$signature || !strip_tags($signature)) return @unlink($filename);
|
||||
|
||||
$buff = sprintf('<?php if(!defined("__ZBXE__")) exit();?>%s', $signature);
|
||||
FileHandler::makeDir($path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue