Improved www.ttss.krakow.pl
Jacek Kowalski
2019-07-06 d5e9192e9978ea1076f07a9a874c8210aa8b935c
Fix code-style issues (extra ";", == instead of ===, code order)
1 files modified
8 ■■■■ changed files
map.js 8 ●●●● patch | view | raw | blame | history
map.js
@@ -94,7 +94,7 @@
    
    this._content = document.createElement('div');
    this._element.appendChild(this._content);
};
}
Panel.prototype = {
    _element: null,
    _hide: null,
@@ -591,6 +591,8 @@
    }
    // Vehicle
    else if(ttss_types.includes(type)) {
        styleVehicle(feature, true);
        var span = displayVehicle(feature.get('vehicle_type'));
        
        additional = document.createElement('p');
@@ -606,8 +608,6 @@
        
        vehicleTable(feature, tbody);
        vehiclePath(feature);
        styleVehicle(feature, true);
    }
    // Stop or stop point
    else if(['s', 'p'].includes(type)) {
@@ -709,7 +709,7 @@
function listFeatures(features) {
    var div = document.createElement('div');
    
    if(features.length == 0) {
    if(features.length === 0) {
        addParaWithText(div, lang.no_results);
        return div;
    }