Skip to content

Commit 9ede0b0

Browse files
committed
IRSA-336: reorder periodogram tables
1 parent 4f43635 commit 9ede0b0

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/firefly/js/templates/lightcurve/LcPeriodogram.jsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -526,17 +526,6 @@ function periodogramSuccess(popupId, hideDropDown = false) {
526526
sortInfo: sortInfoString('SDE', false) // sort peak table by column SDE, descending
527527
}, {tbl_id: LC.PEAK_TABLE, pageSize: parseInt(peak), noPeriodUpdate: true});
528528

529-
if (tReq2 !== null) {
530-
dispatchTableSearch(tReq2, {removable: true, tbl_group: LC.PERIODOGRAM_GROUP});
531-
const xyPlotParams = {
532-
x: {columnOrExpr: LC.PEAK_CNAME, options: 'grid'},
533-
y: {columnOrExpr: LC.POWER_CNAME, options: 'grid'},
534-
plotStyle: 'linepoints'
535-
536-
};
537-
loadXYPlot({chartId: LC.PEAK_TABLE, tblId: LC.PEAK_TABLE, xyPlotParams, help_id: 'findpTSV.pgramresults'});
538-
}
539-
540529
var tReq = makeTblRequest('LightCurveProcessor', LC.PERIODOGRAM_TABLE, {
541530
original_table: srcFile,
542531
x: get(defPeriod, [pKeyDef.time.fkey, 'value']) || get(layoutInfo, [LC.MISSION_DATA, LC.META_TIME_CNAME]),
@@ -569,6 +558,16 @@ function periodogramSuccess(popupId, hideDropDown = false) {
569558
help_id: 'findpTSV.pgramresults'
570559
});
571560
}
561+
if (tReq2 !== null) {
562+
dispatchTableSearch(tReq2, {removable: true, tbl_group: LC.PERIODOGRAM_GROUP});
563+
const xyPlotParams = {
564+
x: {columnOrExpr: LC.PEAK_CNAME, options: 'grid'},
565+
y: {columnOrExpr: LC.POWER_CNAME, options: 'grid'},
566+
plotStyle: 'linepoints'
567+
568+
};
569+
loadXYPlot({chartId: LC.PEAK_TABLE, tblId: LC.PEAK_TABLE, xyPlotParams, help_id: 'findpTSV.pgramresults'});
570+
}
572571

573572
dispatchActiveTableChanged(LC.PERIODOGRAM_TABLE, LC.PERIODOGRAM_GROUP);
574573
if (hideDropDown && popupId && isDialogVisible(popupId)) {

0 commit comments

Comments
 (0)