Skip to content

Commit

Permalink
openflights.js: Couple of comment block tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Sep 20, 2024
1 parent 99fc88d commit 37e31cf
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions openflights.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@ function onAirportUnselect(airport) {
// do nothing
}

/**
* @param strURL
* @param id
* @param param
*/
function xmlhttpPost(strURL, id, param) {
var self = this;
var query = "";
Expand Down Expand Up @@ -1611,7 +1616,9 @@ function updateFilter(str) {
);
}

// Generate title for current map
/**
* Generate title for current map
*/
function getMapTitle(closable) {
var form = document.forms["filterform"];
var text = "";
Expand Down Expand Up @@ -1858,7 +1865,9 @@ function cloneSelect(oldSelect, name, hook, selected) {
return newSelect;
}

// Return value of the currently selected radio button in this group
/**
* Return value of the currently selected radio button in this group
*/
function radioValue(radio) {
for (var r = 0; r < radio.length; r++) {
if (radio[r].checked) {
Expand Down Expand Up @@ -2092,6 +2101,11 @@ function startListFlights() {
xmlhttpPost(URL_FLIGHTS, 0, "MAP");
}

/**
* @param str
* @param desc
* @param id
*/
function listFlights(str, desc, id) {
openPane("result");
fidList = [];
Expand Down Expand Up @@ -3858,7 +3872,7 @@ function selectAirport(apid, select, quick, code) {
}

/**
* Change number of rows displayed in multiinput
* Change the number of rows displayed in multiinput
* @param type {string}
*/
function changeRows(type) {
Expand Down Expand Up @@ -4200,7 +4214,9 @@ function logout(str) {
document.forms["login"].name.focus();
}

// Get current transport mode
/**
* Get current transport mode
*/
function getMode() {
if (getCurrentPane() == "input") {
return document.forms["inputform"].mode.value;
Expand Down

0 comments on commit 37e31cf

Please sign in to comment.