| 
    script(type="text/javascript"). 
        $(document).ready(function() { 
            $("#photo-update-action-selector").click(function() { 
                $("#photo-update-action-selector").children(".select-items").toggle(); 
            }); 
 
            $("#upload-new-photo").click(function() { 
                $("#photo-upload-error-box").html(""); 
                $("#uploadnewphoto").click(); 
            }); 
 
            $("#remove-photo").click(function() { 
 
            }); 
 
            $("#uploadnewphoto").change(function() { 
                var file = this.files[0]; 
 
                if (checkUploadFile(file, 700) == true) { 
                    var formData = new FormData($('#frmOffice')[0]); 
                    //- formData.append('file', $("#uploadnewphoto")[0].files[0]); 
 
                    $.ajax({ 
                        url: "/office/info/upload-new-photo", 
                        type: "POST", 
                        processData: false, 
                        contentType: false, 
                        data: formData, 
                        success: function(result) { 
                            if (result.code == "0000") { 
                                alert('success'); 
                                //- location.href = "/home#{logintype}"; 
                            } else { 
                                $("#photo-upload-error-box").html(result.message); 
                            } 
                        }, 
                        error: function(req, status, err) { 
                            //- alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); 
                            $("#errormsg").html("code:"+status+"\n"+"message:"+req.responseText+"\n"+"error:"+err); 
                        } 
                    }); 
                } 
            }); 
        }); 
 
        form#frmOffice(name="frmOffice", enctype="multipart/form-data") 
            div.row-item 
                fieldset 
                    legend.row-title  로고 
                    div.settings-item 
                        div#photo 
                            div 
                                div 
                                    div.photo-preview.left 
                                        img#photo-upload-preview(src="/images/no-profile-pic.png") 
                                    div.upload-action-selector.left 
                                        div#photo-update-action-selector.select-container 
                                            div.select-arrow 
                                            div.selected-item 이미지 변경 
                                            ul.select-items(style="display:none") 
                                                li#upload-new-photo.select-enabled.select-hovering-item 새 이미지 업로드 
                                                li#remove-photo.select-enabled 제거 
                                        div#photo-upload-error-box.error-message 
                                        div.accepted-photo-types .jpg, .gif, .png. 최대 파일 크기는 700K입니다. 
                                        div 
                                            input#uploadnewphoto(type="file" name="uploadnewphoto") 
 |