added js api to allow mobileclient to open modals

This commit is contained in:
Jenny Danzmayr 2018-12-19 10:52:36 +01:00
parent f635d5991c
commit 3006629129

View file

@ -1382,6 +1382,11 @@ function nearby_stations_available() {
c3nav._wifi_scan_results(mobileclient.getNearbyStations()); c3nav._wifi_scan_results(mobileclient.getNearbyStations());
} }
function openInModal(location) {
c3nav.open_modal();
$.get(location, c3nav._modal_loaded).fail(c3nav._modal_error);
}
LevelControl = L.Control.extend({ LevelControl = L.Control.extend({
options: { options: {