파일첨부가 허용된 에디터 출력시 이미 등록된 첨부파일의 수를 count하여 첨부된 파일이 없으면 파일 목록을 구해오지 않도록 하여 쓸데없는 페이지 호출 및 서버 작업/ 클라이언트 부하를 없앰

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3749 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-22 13:21:11 +00:00
parent 27d176f9ec
commit 1dbe0daede
5 changed files with 18 additions and 9 deletions

View file

@ -149,7 +149,7 @@
var zbxe_session_name = "{session_name()}";
var uploader_setting = { "allowed_filesize" : "{$file_config->allowed_filesize}", "allowed_filetypes" : "{$file_config->allowed_filetypes}", "allowed_filetypes_description" : "{$file_config->allowed_filetypes}" }
<!--@if(!$editor_manual_start)-->
editor_upload_init("{$editor_sequence}");
editor_upload_init("{$editor_sequence}", '', "{$files_count}");
<!--@end-->
//]]></script>