PageSourceSearch

https://kyun2-girls.com/common/js/statusChange.js

js kyun2-girls.com collected 2026-10-05 02:02:28 UTC 2,213 bytes, 91 lines download raw bytes

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.