
function renderWaiting(element) { 
	document.getElementById(element).innerHTML = "<i class='icon-spinner icon-spin'>"
}

function unrenderWaiting() {
	$(".icon-spinner").hide()
}

function renderError(element, error, detail) { 
	error_alert = "<div class='alert alert-danger'>"+error
	if (detail) { error_alert += "<br/>"+detail }
	error_alert += "</div>"
	document.getElementById(element).innerHTML = error_alert
}

function metricURL(base, start, stop, step){ 
	return base+"&start="+start+"&stop="+stop+"&step="+step		
}

function stopButtonClick() { 
        stopUpdates()
	$("#autoplay_stop").hide()
	$("#autoplay_play").show()
} 



function renderWaiting(element) { 
	document.getElementById(element).innerHTML = "<i class='icon-spinner icon-spin'>"
}

function unrenderWaiting() {
	$(".icon-spinner").hide()
}

function renderError(element, error, detail) { 
	error_alert = "<div class='alert alert-danger'>"+error
	if (detail) { error_alert += "<br/>"+detail }
	error_alert += "</div>"
	document.getElementById(element).innerHTML = error_alert
}

function metricURL(base, start, stop, step){ 
	return base+"&start="+start+"&stop="+stop+"&step="+step		
}

function stopButtonClick() { 
        stopUpdates()
	$("#autoplay_stop").hide()
	$("#autoplay_play").show()
} 
function stopAll() {
        stopUpdates()
	stopButtonClick()
	unrenderWaiting()
}

Call all stopping points on error: stop updates, stop button change, and remove 'waiting' button
Call all stopping points on error: stop updates, stop button change, and remove 'waiting' button

pending isolation to stop one graph
