PageSourceSearch

https://orriginal.com/wp-content/themes/the-writer/ocmx/includes/upgrade.js?ver=5.6.14

js orriginal.com collected 2026-10-02 21:04:18 UTC 3,595 bytes, 100 lines download raw bytes

1post_page = ThemeAjax.ajaxurl;
2jQuery(document).ready(function()
3	{
4		jQuery("a[id^='upgrade-all']").bind("click", function()
5			{
6				sure_upgrade = confirm("Are you sure you'd like to replace the old files?");
7				if(sure_upgrade)
8					{
9						jQuery(jQuery("a[id^='upgrade-button-']").get().reverse()).each(function(){
10							var zipfile = jQuery(this).attr("rel");
11							var version = jQuery(this).attr("id").replace("upgrade-button-", "");
12							var this_href = this;
13							var status = version.replace(".", "-");
14							var status = "#upgrade-status-"+status.replace(".", "-");
15							jQuery(status).fadeIn();
16							jQuery.get(post_page,
17								{action : 'do_theme_upgrade', zipfile: zipfile, version: version},
18								function(data)
19										{
20											setTimeout(function(){jQuery(this_href).parent().parent().fadeOut();}, 200);
21											if(data.toString().indexOf("process_success") > -1)
22												{ jQuery(this_href).parent().html("<p>Successfully Updated!</p>");}
23											else
24												{ jQuery(this_href).parent().html("<p>Update Failed</p>");}
25										}
26									);
27						});
28					};
29				return false;
30			});
31		jQuery("a[id^='upgrade-button-']").bind("click", function()
32			{
33				zipfile = jQuery(this).attr("rel");
34				version = jQuery(this).attr("id").replace("upgrade-button-", "");
35				this_href = this;
36				status = version.replace(".", "-");
37				status = "#upgrade-status-"+status.replace(".", "-");
38				sure_upgrade = confirm("Are you sure you'd like to replace the old files?");
39				if(sure_upgrade)
40					{
41						jQuery(status).fadeIn();
42						jQuery.get(post_page,
43							{action : 'do_theme_upgrade', zipfile: zipfile, version: version},
44							function(data)
45									{
46
47										setTimeout(function(){jQuery(this_href).parent().parent().fadeOut();}, 200);
48										if(data.toString().indexOf("process_success") > -1)
49											{ jQuery(this_href).parent().html("<p>Successfully Updated!</p>");}
50										else
51											{ jQuery(this_href).parent().html("<p>Update Failed</p>");}
52									}
53								);
54					}
55				return false;
56			});
57		jQuery("a[id^='upgrade-ocmx-button-']").bind("click", function()
58			{
59				version = jQuery(this).attr("id").replace("upgrade-ocmx-button-", "");
60				status = version.replace(".", "-");
61				status = "#upgrade-status-"+status.replace(".", "-");
62
63				this_href = this;
64				sure_upgrade = confirm("Are you sure you'd like to replace the old files?");
65				if(sure_upgrade)
66					{
67						jQuery(status).fadeIn();
68						jQuery.get(post_page,
69							{action : 'do_ocmx_upgrade', version: version},
70							function(data)
71									{
72
73										setTimeout(function(){jQuery(this_href).parent().parent().fadeOut();}, 200);
74										if(data.toString().indexOf("process_success") > -1)
75											{ jQuery(this_href).parent().html("<p>Successfully Updated!</p>");}
76										else
77											{ jQuery(this_href).parent().html("<p>Update Failed</p>");}
78									}
79								);
80					}
81				return false;
82			});
83		jQuery("a[id^='upgrade-files-href-']").bind("click", function()
84			{
85				tbody = jQuery(this).attr("rel");
86				if(jQuery(tbody).hasClass("no_display"))
87					{
88						jQuery(tbody).fadeIn();
89						jQuery(this).text("Hide File List");
90						setTimeout(function(){jQuery(tbody).removeClass("no_display");}, 500);
91					}
92				else
93					{
94						jQuery(tbody).fadeOut();
95						jQuery(this).text("Show File List");
96						setTimeout(function(){jQuery(tbody).addClass("no_display");}, 500);
97					}
98				return false;
99			});
100	});

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.