Add setHardwareModeTooltip(), fix webmanifest src attr

This commit is contained in:
billz 2023-03-19 16:47:30 +01:00
parent 6faa6d749a
commit 01af3d1c52
2 changed files with 13 additions and 1 deletions

View File

@ -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"
}

View File

@ -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.