스마트에디터 이미지만 허용합니다 경고창 뜨는데가 어
딘지 아시는분 ...
이미지만 허용합니다 경고창 뜨는데 이 경고창 어느부분에 뜨는지 아시는분 계세요..
.....
|
답변 1개
채택된 답변
+20 포인트
2015-08-03 (월) 17:43:24
/plugin/editor/smarteditor2/photo_uploader/popup/js/basic.js
75번 라인입니다.
Copy
_add : function(e, data, preload){ var othis = this; othis._startmodebg(); data.context = $('<li/>').addClass("sort_list").appendTo(this.dreg_area_list); $.each(data.files, function (index, file) { if ( !preload && !othis.filter.test(file.type)) { data.context.remove(); alert('이미지만 허용합니다.'); return true; } var node = $('<div/>') .append($('<span/>').text(file.name)) .append($('<span/>').addClass("delete_img").attr({"data-delete":file.name,"data-url":file.url}).html("<img src='./img/system_delete.png' alt='삭제' title='삭제' >")), $img = "<img src='./img/loading.gif' class='pre_thumb' />", size_text = ''; if ( preload && preload != 'swfupload' ){ var ret = othis.get_ratio( file.width, file.height ), size_text = file.width+" x "+file.height; $img = "<img src='"+file.url+"' width='"+ret['width']+"' height='"+ret['height']+"' class='pre_thumb' />"; } if (!index) { node .prepend('<br>') .prepend($img); if(size_text){ node.append('<br>') .append($('<span/>').text(size_text)) } } node.appendTo(data.context); node.find(".delete_img").on("click", othis._delete); }); $(othis.dreg_area_list).sortable('refresh'); },
답변을 작성하려면 로그인이 필요합니다.