PageSourceSearch

https://www.sheepit-renderfarm.com/media/9b13032c/script/admin.js

js sheepit-renderfarm.com collected 2026-10-02 10:05:09 UTC 3,707 bytes, 125 lines download raw bytes

1function projectAction(id_, action_) {
2	if (action_ == 'remove_no_redirect') {
3		if (confirm("Are you sure you want to delete this project?\nIt can NOT be undone.") == false) {
4			return;
5		}
6	}
7	$('project_job_'+id_+'_div_actions').html('<img src="/media/image/loading-alpha.gif">');
8
9	$.ajax({
10		type: 'POST',
11		url: '/project/' + id_ + '/' + action_,
12		data: {},
13		success: function(responseText) {
14			if (responseText == 'OK') {
15				window.location.reload();
16			}
17			else if (responseText == 'EMPTY') {
18				window.location = '/user/profile';
19			}
20			else {
21				alert("Problem "+responseText);
22			}
23		},
24		onFailure: function() {
25			alert("Failed to do request");
26		}
27	});
28}
29
30function admin_preuser_delete(login_) {
31	requestReloadOnSuccess('/preuser/' + login_ + '/remove ' , {})
32}
33
34function admin_preuser_send_registration_confirmation_email(login_) {
35	requestReloadOnSuccess('/preuser/' + login_ + '/send_email' , {})
36}
37
38function admin_session_block(session_id, blocked) {
39	requestReloadOnSuccess('/session/'+ session_id + '/block/' + blocked , {})
40}
41
42function admin_session_block_hwid(session_id, reason) {
43	requestReloadOnSuccess('/session/'+ session_id + '/block_hwid/' + reason , {})
44}
45
46function doBlockSession(id) {
47	admin_session_block(id, $('#blocked').val())
48}
49
50function doBlockHWID(login, hwid) {
51	requestReloadOnSuccess('/hwid/blacklist/add/' + login + '/' + hwid + '/' + $('#blocked_hwid').val()  , {})
52}
53
54function doSearchHWID() {
55	$('#search_hwid_result').html('<div style="width: 44px;height: 44px;background: url(\'/media/image/fancybox_loading.gif\') center center no-repeat;"></div>');
56	$.ajax({
57		type: 'GET',
58		url: '/hwid/search/' + $('#hwid_search_input').val(),
59		data: [],
60		success: function(responseHTML) {
61			$('#search_hwid_result').html(responseHTML);
62			new LazyLoad(); // must be called after all the <img are loaded
63		},
64	});
65}
66
67function admin_hwid_blacklist_delete(id_) {
68	requestReloadOnSuccess('/hwid/blacklist/' + id_ + '/remove', {})
69}
70
71function admin_blender_hardware_compatibility_add_from_string(pattern) {
72    requestReloadOnSuccess('/blender_hardware_compatibility/add', {
73        'pattern': pattern
74    })
75}
76
77function admin_blender_hardware_compatibility_add_from_input() {
78    requestReloadOnSuccess('/blender_hardware_compatibility/add', {
79        'pattern': $('#pattern_input').val()
80    })
81}
82
83function admin_blender_hardware_compatibility_delete(id_) {
84    requestReloadOnSuccess('/blender_hardware_compatibility/' + id_ + '/remove', {})
85}
86
87function admin_gift_create() {
88	requestReloadOnSuccess('/gift/add/' + $('#gift_owner').val()  + '/' + $('#gift_value').val() + '/' + ($('#gift_send_email').is(':checked') ? "1" : "0"),
89		{ 'comment' : $('#gift_comment').val() }
90	);
91}
92
93function admin_gift_delete(id_) {
94	requestReloadOnSuccess('/gift/delete/' + id_ , {})
95}
96
97function admin_award_give() {
98	requestReloadOnSuccess('/fulladmin/give_award/' + $('#award_owner').val() + '/' + $('#award_type').val(), {})
99}
100
101function admin_mirror_enable(mirror_id, enable) {
102	requestReloadOnSuccess('/mirror/' + mirror_id + '/enable/' + enable, {})
103}
104
105function admin_shepherd_enable(shepherd_id, enable) {
106	requestReloadOnSuccess('/shepherd/' + shepherd_id + '/enable/' + enable, {})
107}
108
109function admin_shepherd_allow_new_blend(shepherd_id, enable) {
110	requestReloadOnSuccess('/shepherd/' + shepherd_id + '/allow_new_project/' + enable, {})
111}
112
113function admin_reset_task(id) {
114	requestReloadOnSuccess('/task/' + id +'/reset', {})
115}
116
117function admin_reset_task_on_shepherd(id, shepherd_id) {
118	requestReloadOnSuccess('/shepherd/' + shepherd_id + '/task/reset/' + id, {})
119}
120
121function DoSendMessage(path_) {
122	requestReloadOnSuccess(path_, {
123		'comment': $('#message').val()
124	})
125}

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.