Project

General

Profile

« Previous | Next » 

Revision 0eea8800

Added by Scott Ullrich over 16 years ago

Delay status check by 2 seconds

View differences:

usr/local/www/widgets/widgets/system_information.widget.php
213 213
	</tbody>
214 214
</table>
215 215
<script type="text/javascript">
216
	scroll(0,0);
217
	var url = "/widgets/widgets/system_information.widget.php";
218
	var pars = 'getupdatestatus=yes';
219
	var myAjax = new Ajax.Request(
220
		url,
221
		{
222
			method: 'get',
223
			parameters: pars,
224
			onComplete: activitycallback
225
		});
216
	function getstatus() {
217
		scroll(0,0);
218
		var url = "/widgets/widgets/system_information.widget.php";
219
		var pars = 'getupdatestatus=yes';
220
		var myAjax = new Ajax.Request(
221
			url,
222
			{
223
				method: 'get',
224
				parameters: pars,
225
				onComplete: activitycallback
226
			});
227
	}
226 228
	function activitycallback(transport) {
227 229
		$('updatestatus').innerHTML = transport.responseText;
228 230
	}
231
	setTimeout('getstatus()', 2000);
229 232
</script>

Also available in: Unified diff