WRI-Cities / static-GTFS-manager

GUI interface for creating, editing, exporting of static GTFS data for a public transit authority
GNU General Public License v3.0
147 stars 46 forks source link

Schedules > Trips : can't create new trip for a new route #73

Closed answerquest closed 6 years ago

answerquest commented 6 years ago

For a newly configured route whose trips table is empty, unable to create new trip. Browser console reports an error on pressing the blue "Add a Trip" button.

tabulator.js:2783 Uncaught ReferenceError: activeRows is not defined
    at RowManager.addRowActual (tabulator.js:2783)
    at RowManager.addRow (tabulator.js:2686)
    at tabulator.js:2720
    at Array.forEach (<anonymous>)
    at RowManager.addRows (tabulator.js:2718)
    at t.(anonymous function).(anonymous function).addRow (http://localhost:5000/lib/tabulator.js:6812:31)
    at t.(anonymous function).(anonymous function).addRow (http://localhost:5000/lib/jquery-ui.min.js:6:4499)
    at HTMLDivElement.<anonymous> (jquery-ui.min.js:6)
    at Function.each (jquery-3.3.1.min.js:2)
    at w.fn.init.each (jquery-3.3.1.min.js:2)
answerquest commented 6 years ago

Found the source of the problem : it's a small bug in the JS library. Details here.

Made a temp fix and will update the library when the bug is fixed at source.

It's working now : we can add a new trip for a freshly minted route. Code will be updated with v1.4.3.