Improved www.ttss.krakow.pl
bcae331f696215a5b79a9f9bc484d41b019e483e..5515fcacb41ce1d10833e8aef44cfd00c8ecac8c
2017-03-18 Jacek Kowalski
Autofocus stop name input field
5515fc diff | tree
2017-03-18 Jacek Kowalski
Compatibility: drop default values for loadTimes function parameters
24a102 diff | tree
2 files modified
4 ■■■■ changed files
index.html 2 ●●● patch | view | raw | blame | history
index.js 2 ●●● patch | view | raw | blame | history
index.html
@@ -25,7 +25,7 @@
                <form class="navbar-form navbar-left">
                    <div class="input-group">
                        <span class="input-group-btn">
                            <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" />
                            <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" autofocus="autofocus" />
                        </span>
                        <select class="form-control" id="stop-name-autocomplete">
                        </select>
index.js
@@ -271,7 +271,7 @@
    nav.className = nav.className.replace(' loading', '');
}
function loadTimes(stopId = null, clearRoute = false) {
function loadTimes(stopId, clearRoute) {
    if(!stopId) stopId = stop_id;
    if(!stopId) return;