1var ANDROID_IMAGE_UPLOAD = function(){ 2 var android_que = []; 3 var $type = ''; 4 var $image_list_obj = {}; 5 6 var init = function(type){ 7 $type = type; 8 } 9 10 //ì´ë¯¸ì§ ììì ì¥ ë¦¬ì¤í¸ ì¶ê° 11 if(!($image_list_obj.length > 0)) { 12 var image_list_html = $("<ul id='image_list' style='display: none'></ul>"); 13 $("body").append(image_list_html); 14 $image_list_obj = image_list_html; 15 } 16 17 var androidAppPostImageUploadComplete = function(image){ 18 if(image.tmp_idx > 0){ 19 android_que.push(image); 20 if(image.is_last == "Y") androidAppPostImageUploadAllComplete(); 21 } 22 }; 23 24 var androidAppPostImageUploadAllComplete = function(){ 25 androidAppPostImageInsert(android_que[0]); 26 }; 27 28 var androidAppPostImageInsert = function(image){ 29 FroalaEditor('#'+$type).image.insert(CDN_UPLOAD_URL+image.url, true); 30 }; 31 32 var postAddImage = function(tmp_idx,size){ 33 var uniq_id = makeUniq('image_'); 34 var hidden_input = $('<input name="temp_images[]" value="' + tmp_idx + '" type="hidden" />'); 35 var li = $('<li>').attr('id',uniq_id).data({'item':uniq_id,size:size}); 36 li.append(hidden_input); 37 $image_list_obj.append(li); 38 }; 39 40 return { 41 'androidAppPostImageUploadComplete':function(image){ 42 androidAppPostImageUploadComplete(image); 43 }, 44 'init':function(type){ 45 init(type); 46 } 47 } 48}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.