Minor fixes for the widget

Change-Id: I8a2be3202a49e948c92200b6cc7d3f4c90807f0f
This commit is contained in:
Ilya Shakhat 2013-11-13 13:23:33 +04:00
parent 24816f7704
commit fd99717581
2 changed files with 2 additions and 6 deletions

View File

@ -338,7 +338,6 @@ function init_selectors(base_url) {
};
},
results: function (data, page) {
$("#metric").val(data["default"]);
return {results: data["metrics"]};
}
},

View File

@ -1,8 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>Stackalytics Widget</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Stackalytics Widget</title>
@ -41,7 +39,7 @@
<script type="text/javascript">
var base_url = "http://localhost:5000";
var base_url = "http://stackalytics.com";
$(document).ready(function () {
init_selectors(base_url);
@ -107,8 +105,7 @@
<li><a href="#tabs-2">By modules</a></li>
</ul>
<div id="tabs-1">
<div id="company_chart"
style="width: 100%; height: 260px; background-color: white"></div>
<div id="company_chart" style="width: 100%; height: 260px;"></div>
</div>
<div id="tabs-2">
<div id="module_chart" style="width: 100%; height: 260px;"></div>