diff options
author | Darren Embry <dse@webonastick.com> | 2012-04-06 17:43:26 -0400 |
---|---|---|
committer | Darren Embry <dse@webonastick.com> | 2012-04-06 17:43:26 -0400 |
commit | 556e760dc0c91f993d3ae72977f03ca5ead30ba3 (patch) | |
tree | 8511bc36e8cd428562e61542a003da9d53fe33f1 /usr/local/www | |
parent | 1ed88e0660e9ba13a94a381aced80eb25c384156 (diff) | |
download | pfsense-556e760dc0c91f993d3ae72977f03ca5ead30ba3.zip pfsense-556e760dc0c91f993d3ae72977f03ca5ead30ba3.tar.gz |
fix indentation.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/widgets/javascript/traffic_graph.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/local/www/widgets/javascript/traffic_graph.js b/usr/local/www/widgets/javascript/traffic_graph.js index 590b716..4970f25 100644 --- a/usr/local/www/widgets/javascript/traffic_graph.js +++ b/usr/local/www/widgets/javascript/traffic_graph.js @@ -1,19 +1,19 @@ function trafficshowDiv(incDiv,swapButtons){ //appear element selectedDiv = incDiv + "graphdiv"; - jQuery('#' + selectedDiv).effect('blind',{mode:'show'},1000); - showSave(); + jQuery('#' + selectedDiv).effect('blind',{mode:'show'},1000); + showSave(); d = document; - if (swapButtons){ - selectIntLink = selectedDiv + "-min"; + if (swapButtons){ + selectIntLink = selectedDiv + "-min"; textlink = d.getElementById(selectIntLink); textlink.style.display = "inline"; - - selectIntLink = selectedDiv + "-open"; + + selectIntLink = selectedDiv + "-open"; textlink = d.getElementById(selectIntLink); textlink.style.display = "none"; - } - selectIntLink = incDiv + "_graph-config"; + } + selectIntLink = incDiv + "_graph-config"; textlink = d.getElementById(selectIntLink); textlink.value = "show"; updateGraphDisplays(); @@ -22,19 +22,19 @@ function trafficshowDiv(incDiv,swapButtons){ function trafficminimizeDiv(incDiv,swapButtons){ //fade element selectedDiv = incDiv + "graphdiv"; - jQuery('#' + selectedDiv).effect('blind',{mode:'hide'},1000); - showSave(); + jQuery('#' + selectedDiv).effect('blind',{mode:'hide'},1000); + showSave(); d = document; - if (swapButtons){ - selectIntLink = selectedDiv + "-open"; + if (swapButtons){ + selectIntLink = selectedDiv + "-open"; textlink = d.getElementById(selectIntLink); textlink.style.display = "inline"; - - selectIntLink = selectedDiv + "-min"; + + selectIntLink = selectedDiv + "-min"; textlink = d.getElementById(selectIntLink); textlink.style.display = "none"; - } - selectIntLink = incDiv + "_graph-config"; + } + selectIntLink = incDiv + "_graph-config"; textlink = d.getElementById(selectIntLink); textlink.value = "hide"; updateGraphDisplays(); @@ -58,7 +58,7 @@ function updateGraphDisplays(){ graphsdisplayed += ",refreshInterval="; graphsdisplayed += d.getElementById(selectIntLink).value; - selectIntLink = "traffic_graphs-config"; + selectIntLink = "traffic_graphs-config"; textlink = d.getElementById(selectIntLink); textlink.value = graphsdisplayed; } |