|
@@ -367,8 +367,7 @@ ${layout.menubar(section='query')}
|
|
|
</label>
|
|
</label>
|
|
|
<label>${_('Y-Axis')}
|
|
<label>${_('Y-Axis')}
|
|
|
<select id="blueprintY" class="blueprintSelect"></select>
|
|
<select id="blueprintY" class="blueprintSelect"></select>
|
|
|
- </label>
|
|
|
|
|
- <a rel="tooltip" data-placement="top" title="${_('Download image')}" id="blueprintDownload" href="javascript:void(0)" class="btn hide"><i class="fa fa-download"></i></a>
|
|
|
|
|
|
|
+ </label>
|
|
|
</span>
|
|
</span>
|
|
|
<span id="blueprintLatLng" class="hide">
|
|
<span id="blueprintLatLng" class="hide">
|
|
|
<label>${_('Latitude')}
|
|
<label>${_('Latitude')}
|
|
@@ -1243,7 +1242,6 @@ $(document).ready(function () {
|
|
|
catch (err) { // do nothing
|
|
catch (err) { // do nothing
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $("#blueprintDownload").addClass("hide");
|
|
|
|
|
$("#blueprint").attr("class", "").attr("style", "").empty();
|
|
$("#blueprint").attr("class", "").attr("style", "").empty();
|
|
|
$("#blueprint").data("plugin_jHueBlueprint", null);
|
|
$("#blueprint").data("plugin_jHueBlueprint", null);
|
|
|
if (graphType == $.jHueBlueprint.TYPES.MAP) {
|
|
if (graphType == $.jHueBlueprint.TYPES.MAP) {
|
|
@@ -1312,7 +1310,6 @@ $(document).ready(function () {
|
|
|
if (_data.length > 30){
|
|
if (_data.length > 30){
|
|
|
$(".flot-x-axis .flot-tick-label").hide();
|
|
$(".flot-x-axis .flot-tick-label").hide();
|
|
|
}
|
|
}
|
|
|
- $("#blueprintDownload").removeClass("hide");
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
$("#blueprint").addClass("empty").text("${_("Please select the columns you would like to see in this chart.")}");
|
|
$("#blueprint").addClass("empty").text("${_("Please select the columns you would like to see in this chart.")}");
|
|
@@ -1321,10 +1318,6 @@ $(document).ready(function () {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $("#blueprintDownload").on("click", function(){
|
|
|
|
|
- window.open($(".flot-base")[0].toDataURL());
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
function getGraphType() {
|
|
function getGraphType() {
|
|
|
var _type = "";
|
|
var _type = "";
|
|
|
if ($("#blueprintBars").hasClass("active")) {
|
|
if ($("#blueprintBars").hasClass("active")) {
|