1(function(){ 2 3 function changeStatus(type){ 4 var id = new Array; 5 var method = $("select[name='method']").val(); 6 $("input:checked").map(function() 7 { id.push($(this).val()); }); 8 9 switch(method){ 10 case "allowed": 11 case "notallowed": 12 case "Unconfirmed": 13 if(type == 'items') { changeItemsActivate(type,method,id); } 14 else { changeActivate(type,method,id); } 15 break; 16 case "delete": 17 deleteData(type,id); 18 break; 19 default: 20 alert("å®è¡å 容ã鏿ãã¦ä¸ãã"); 21 } 22 } 23 24 function changeActivate(type,method,id){ 25 jQuery.ajax({ 26 url : 'm_api.php' , 27 type : 'POST', 28 dataType : "html", 29 data : "c=statusChangeApi&m=update&type="+type+"&id="+encodeURIComponent(id.join("/"))+"&column=activate&val="+method, 30 success : function(res){ 31 location.reload(); 32 }, 33 error : function(xml, status, e){} 34 }); 35 } 36 37 function deleteData(type,id){ 38 if(confirm("æ¬å½ã«åé¤ãã¾ããï¼")){ 39 jQuery.ajax({ 40 url : 'm_api.php' , 41 type : 'POST', 42 dataType : "json", 43 data : "c=statusChangeApi&m=delete&type="+type+"&id="+encodeURIComponent(id.join("/")), 44 success : function(res){ 45 location.reload(); 46 }, 47 error : function(xml, status, e){} 48 }); 49 } 50 } 51 52 window.changeStatus = changeStatus; 53})(); 54 55/* 56 * æå®ãããidã®ã¢ã¤ãã ãä¸è¨±å¯ç¶æ ã«ãã 57 */ 58function changeItemsClose(id) 59{ 60 if( !confirm('å ¬éãåãä¸ããã¨ãå度ã管çè ã«æ¿èªãããã¾ã§ãå ¬éãããªããªãã¾ãã\nåãä¸ãã¦ãããããã§ããã')) 61 { 62 return ; 63 } 64 65 jQuery.ajax({ 66 url : 'm_api.php' , 67 type : 'POST', 68 dataType : "text", 69 data : "c=itemsApi&m=changeItemsClose&id="+id, 70 success : function(res){ 71 location.reload(); 72 }, 73 error : function(xml, status, e){} 74 }); 75} 76 77/* 78 * å ¬éæ¥ãè¨å®ãããããItemså°ç¨ã«ã®å¦çã追å 79 */ 80function changeItemsActivate(type,method,id){ 81 jQuery.ajax({ 82 url : 'm_api.php' , 83 type : 'POST', 84 dataType : "html", 85 data : "c=itemsApi&m=changeActivate&id="+encodeURIComponent(id.join("/"))+"&column=activate&val="+method, 86 success : function(res){ 87 location.reload(); 88 }, 89 error : function(xml, status, e){} 90 }); 91}
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.