diff options
author | Francisco Cavalcante <francisco.cavalcante@bluepex.com> | 2016-01-22 14:20:24 -0200 |
---|---|---|
committer | Francisco Cavalcante <francisco.cavalcante@bluepex.com> | 2016-01-22 14:20:24 -0200 |
commit | 3f98044a3dcb281a433ea6335285ecdf5da23d96 (patch) | |
tree | 0a45c32d7e46de2eb7fa01914b0f68e342eed999 /src/usr/local/www/widgets/javascript/cpu_graphs.js | |
parent | 2f84d661d3d3687f71b89b141b6e1c24feb658d1 (diff) | |
download | pfsense-3f98044a3dcb281a433ea6335285ecdf5da23d96.zip pfsense-3f98044a3dcb281a433ea6335285ecdf5da23d96.tar.gz |
Replaced jQuery to $ in same files
Diffstat (limited to 'src/usr/local/www/widgets/javascript/cpu_graphs.js')
-rw-r--r-- | src/usr/local/www/widgets/javascript/cpu_graphs.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/widgets/javascript/cpu_graphs.js b/src/usr/local/www/widgets/javascript/cpu_graphs.js index 1fc690a..2e00e67 100644 --- a/src/usr/local/www/widgets/javascript/cpu_graphs.js +++ b/src/usr/local/www/widgets/javascript/cpu_graphs.js @@ -36,7 +36,7 @@ var GL_DYNAMIC = 1; function GraphInitialize(element_id, width, height, bar_width) { // Find the page element which will contain the graph var owner; - if((owner = jQuery('#' + element_id)) == null) { + if((owner = $('#' + element_id)) == null) { alert("GraphLink Error: Element ID '" + element_id + "' not found."); return false; } @@ -72,10 +72,10 @@ function GraphInitialize(element_id, width, height, bar_width) { graph_html += '</div>'; owner.html(graph_html); - graph['element_id'] = jQuery('#GraphLinkData' + graph['id']); + graph['element_id'] = $('#GraphLinkData' + graph['id']); for(i = 0; i < bar_count; i++) { - graph['spans'][i] = jQuery('#GraphLinkBar' + graph['id'] + '_' + i); + graph['spans'][i] = $('#GraphLinkBar' + graph['id'] + '_' + i); graph['spans'][i].css('width',bar_width + 'px'); graph['spans'][i].css('margin-top',height + 'px'); } @@ -241,5 +241,5 @@ function GraphDraw(graph) { for(var i = 0; i < count; i++) graph['spans'][i].css("marginTop", getMargin(i)); -// jQuery('#' + graph['spans'][count - 1]).fadeIn(500); +// $('#' + graph['spans'][count - 1]).fadeIn(500); } |