diff --git a/app/icons/site.webmanifest b/app/icons/site.webmanifest index 321ab7db..5d0d01c4 100644 --- a/app/icons/site.webmanifest +++ b/app/icons/site.webmanifest @@ -3,7 +3,7 @@ "short_name": "RaspAP", "icons": [ { - "src": "/dist/icons/android-chrome-192x192.png", + "src": "/app/icons/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" } diff --git a/app/js/custom.js b/app/js/custom.js index 6483614b..4615ebb9 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -183,6 +183,7 @@ function contentLoaded() { break; case "hostapd_conf": loadChannel(); + setHardwareModeTooltip(); break; case "dhcpd_conf": loadInterfaceDHCPSelect(); @@ -387,6 +388,17 @@ function loadChannelSelect(selected) { }); } +/* Sets hardware mode tooltip text for selected interface. + * Messages are sent from ajax request for gettext locale support. + */ +function setHardwareModeTooltip() { + var iface = $('#cbxinterface').val(); + $.post('ajax/networking/get_frequencies.php?',{'interface': iface},function(data){ + responseText = JSON.parse(data); + $('#tiphwmode').attr('data-original-title', responseText); + }); +} + /* Updates the selected blocklist * Request is passed to an ajax handler to download the associated list. * Interface elements are updated to indicate current progress, status.