#18036113 세션 정보가 없을 때, 타겟을 직접 알려준 타겟srl으로... (문제가 될지 잘 모르겠음...)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6480 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-06-04 12:48:28 +00:00
parent b69ed0849e
commit 25d4403c2d
2 changed files with 11 additions and 4 deletions

View file

@ -43,7 +43,8 @@ function XEUploaderStart(obj) {
post_params: {
"mid" : current_mid,
"act" : "procFileUpload",
"editor_sequence" : obj["editorSequence"]
"editor_sequence" : obj["editorSequence"],
"uploadTargetSrl" : editorRelKeys[obj["editorSequence"]]["primary"].value
},
file_size_limit : parseInt(parseInt(obj["allowedFileSize"],10)/1024,10),
file_queue_limit : 0,
@ -313,15 +314,15 @@ function previewFiles(evt, given_file_srl) {
// 플래쉬 동영상의 경우
if(/\.flv$/i.test(uploaded_filename)) {
html = "<EMBED src=\"./common/tpl/images/flvplayer.swf?autoStart=false&file="+uploaded_filename+"\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\"></EMBED>";
html = "<embed src=\"./common/tpl/images/flvplayer.swf?autoStart=false&file="+uploaded_filename+"\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\"></embed>";
// 플래쉬 파일의 경우
} else if(/\.swf$/i.test(uploaded_filename)) {
html = "<EMBED src=\""+uploaded_filename+"\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\"></EMBED>";
html = "<embed src=\""+uploaded_filename+"\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\"></embed>";
// wmv, avi, mpg, mpeg등의 동영상 파일의 경우
} else if(/\.(wmv|avi|mpg|mpeg|asx|asf|mp3)$/i.test(uploaded_filename)) {
html = "<EMBED src=\""+uploaded_filename+"\" width=\"100%\" height=\"100%\" autostart=\"true\" Showcontrols=\"0\"></EMBED>";
html = "<embed src=\""+uploaded_filename+"\" width=\"100%\" height=\"100%\" autostart=\"true\" Showcontrols=\"0\"></embed>";
// 이미지 파일의 경우
} else if(/\.(jpg|jpeg|png|gif)$/i.test(uploaded_filename)) {