Commit 9a3c3d79 authored by Moreau Nicolas's avatar Moreau Nicolas
Browse files

changes position of samp button on slices, it was hidden by another button

parent 1073634a
......@@ -567,7 +567,7 @@ class Slice {
// samp button
builder.buttonCss = "samp-publish-png";
builder.buttonInnerHTML = "&#8663";
builder.topPosition = "107px";
builder.topPosition = "130px";
builder.title = "Send with SAMP";
this._sampButton = builder.build();
......@@ -862,7 +862,7 @@ class SummedSlice extends Slice {
const minVal = this._viewLinker.spectrumViewer.spectrumChart.xAxis[0].min;
const maxVal = this._viewLinker.spectrumViewer.spectrumChart.xAxis[0].max;
let result = resp["data"];
if (result["status"])
if (result["status"])
this._viewLinker.spectrumViewer.setFrequencyMarker(this._viewLinker.sliceIndex);
let self = this;
this._viewLinker.spectrumViewer.plot(this._lastClick.iRA,
......@@ -881,7 +881,7 @@ class SummedSlice extends Slice {
else{
this._viewLinker.setFluxDensityInSummedPopup(result["result"][0][0], false);
}
console.log("getAverage callback exiting");
}
).fail(
......@@ -929,8 +929,8 @@ class SummedSlice extends Slice {
var url = URL_ROOT + res.result;
window.open(url, '_blank');;
});
});
});
controls.push(imgView);
controls.push(imgDownload);
......@@ -1842,7 +1842,7 @@ class SpectrumViewer {
events: {
click: function(event) {
//console.clear();
console.log("A click occurred on the LINE : enter");
console.log("A click occurred on the LINE : enter");
let sliceIndex = self._computeSliceIndex(plotData, event.point.x);
setSliceChannel("* Chan#"+sliceIndex);
// Display slice at index sliceIndex
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment