var lpOnComplete = function(response) { IntervalRefresh = 1; if(response != null) { $('#statuses').datagrid('loadData',response); refreshInterval = 60; }};