fixed wrong div ids

This commit is contained in:
hyung-hwan 2015-04-23 10:04:07 +00:00
parent 85cd7cec6c
commit f13d9f2c2b
2 changed files with 18 additions and 18 deletions

View File

@ -116,25 +116,25 @@ function show_loc_by_lang_graph (response)
yaxes: { }
};
$("#code_folder_mainarea_result_info_loc_by_lang_graph").width(550).height(400);
$.plot($("#code_folder_mainarea_result_info_loc_by_lang_graph"), dataset, options);
$("#code_folder_mainarea_result_loc_by_lang_graph").width(550).height(400);
$.plot($("#code_folder_mainarea_result_loc_by_lang_graph"), dataset, options);
var code_folder_mainarea_result_info_loc_by_lang_graph_previous_point = null;
var code_folder_mainarea_result_loc_by_lang_graph_previous_point = null;
$("#code_folder_mainarea_result_info_loc_by_lang_graph").bind("plothover", function (event, pos, item) {
$("#code_folder_mainarea_result_loc_by_lang_graph").bind("plothover", function (event, pos, item) {
if (item)
{
if (code_folder_mainarea_result_info_loc_by_lang_graph_previous_point != item.datapoint)
if (code_folder_mainarea_result_loc_by_lang_graph_previous_point != item.datapoint)
{
code_folder_mainarea_result_info_loc_by_lang_graph_previous_point = item.datapoint;
$("#code_folder_mainarea_result_info_loc_by_lang_graph_tooltip").remove();
show_tooltip("code_folder_mainarea_result_info_loc_by_lang_graph_tooltip", item.pageX, item.pageY - 20, item.datapoint[1]);
code_folder_mainarea_result_loc_by_lang_graph_previous_point = item.datapoint;
$("#code_folder_mainarea_result_loc_by_lang_graph_tooltip").remove();
show_tooltip("code_folder_mainarea_result_loc_by_lang_graph_tooltip", item.pageX, item.pageY - 20, item.datapoint[1]);
}
}
else
{
$("#code_folder_mainarea_result_info_loc_by_lang_graph_tooltip").remove();
code_folder_mainarea_result_info_loc_by_lang_graph_previous_point = null;
$("#code_folder_mainarea_result_loc_by_lang_graph_tooltip").remove();
code_folder_mainarea_result_loc_by_lang_graph_previous_point = null;
}
});
}
@ -152,7 +152,7 @@ function show_loc_by_file_graph (response)
}
else
{
var f = new CodeFlower("#code_folder_mainarea_result_info_loc_by_file_graph", 550, 400);
var f = new CodeFlower("#code_folder_mainarea_result_loc_by_file_graph", 550, 400);
f.update (loc);
}
@ -446,8 +446,8 @@ $this->load->view (
<div class="result" id="code_folder_mainarea_result">
<div id="code_folder_mainarea_result_info_loc_by_lang_graph"></div>
<div id="code_folder_mainarea_result_info_loc_by_file_graph"></div>
<div id="code_folder_mainarea_result_loc_by_lang_graph"></div>
<div id="code_folder_mainarea_result_loc_by_file_graph"></div>
<?php
function comp_files ($a, $b)

View File

@ -35,29 +35,29 @@
overflow: auto;
}
#code_folder_mainarea_result_info_loc_by_file_graph circle.node {
#code_folder_mainarea_result_loc_by_file_graph circle.node {
cursor: pointer;
stroke: #000;
stroke-width: .5px;
}
#code_folder_mainarea_result_info_loc_by_file_graph circle.node.directory {
#code_folder_mainarea_result_loc_by_file_graph circle.node.directory {
stroke: #9ecae1;
stroke-width: 2px;
}
#code_folder_mainarea_result_info_loc_by_file_graph circle.node.collapsed {
#code_folder_mainarea_result_loc_by_file_graph circle.node.collapsed {
stroke: #555;
}
#code_folder_mainarea_result_info_loc_by_file_graph .nodetext {
#code_folder_mainarea_result_loc_by_file_graph .nodetext {
fill: #252929;
font-weight: bold;
text-shadow: 0 0 0.2em white;
font-size: 0.9em;
}
#code_folder_mainarea_result_info_loc_by_file_graph line.link {
#code_folder_mainarea_result_loc_by_file_graph line.link {
fill: none;
stroke: #9ecae1;
stroke-width: 1.5px;