summaryrefslogtreecommitdiffstats
path: root/frontends/php/js/graphs.js
blob: b55137c3223f95a70b794df452b7b8f311df6a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// JavaScript Document
var graphs = {
graphtype : 0,
	
submit : function(obj){
	if(obj.name == 'graphtype'){
		if(((obj.selectedIndex > 1) && (this.graphtype < 2)) || ((obj.selectedIndex < 2) && (this.graphtype > 1))){
			var refr = document.getElementsByName('form_refresh');
			refr[0].value = 0;
		} 
	}
	document.getElementsByName('frm_graph')[0].submit();
}
}