Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Fix schedule viewer ui #459

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gtfsscheduleviewer/files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ function callbackDisplayTripRows(data, responseCode, tripId) {
html += svgTag("/ttablegraph?height=100&trip=" + encodeURIComponent(tripId), "height='115' width='100%'");
var bottombarDiv = document.getElementById("bottombar");
bottombarDiv.style.display = "block";
bottombarDiv.style.height = "175px";
bottombarDiv.style.height = "198px";
bottombarDiv.innerHTML = html;
sizeRouteList();
}
Expand Down Expand Up @@ -670,7 +670,7 @@ function sizeRouteList() {
var height = windowHeight() - document.getElementById('topbar').offsetHeight - 15 - bottombarHeight;
document.getElementById('content').style.height = height + 'px';
if (map) {
// Without this displayPolyLine does not use the correct map size
// Without this, displayPolyLine does not use the correct map size
//map.checkResize();
}
}
Expand All @@ -686,7 +686,7 @@ function maybeAddLeadingZero(number) {
}

function setStartDate(y,m,d) {
document.getElementById('startDateInput').value = y + maybeAddLeadingZero(m) + maybeAddLeadingZero(d);
document.getElementById('startDateInput').value = y.toString() + maybeAddLeadingZero(m).toString() + maybeAddLeadingZero(d).toString();
}

function downloadUrl(url, callback) {
Expand Down