mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add setHardwareModeTooltip(), fix webmanifest src attr
This commit is contained in:
parent
6faa6d749a
commit
01af3d1c52
@ -3,7 +3,7 @@
|
|||||||
"short_name": "RaspAP",
|
"short_name": "RaspAP",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/dist/icons/android-chrome-192x192.png",
|
"src": "/app/icons/android-chrome-192x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
|
@ -183,6 +183,7 @@ function contentLoaded() {
|
|||||||
break;
|
break;
|
||||||
case "hostapd_conf":
|
case "hostapd_conf":
|
||||||
loadChannel();
|
loadChannel();
|
||||||
|
setHardwareModeTooltip();
|
||||||
break;
|
break;
|
||||||
case "dhcpd_conf":
|
case "dhcpd_conf":
|
||||||
loadInterfaceDHCPSelect();
|
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
|
/* Updates the selected blocklist
|
||||||
* Request is passed to an ajax handler to download the associated list.
|
* Request is passed to an ajax handler to download the associated list.
|
||||||
* Interface elements are updated to indicate current progress, status.
|
* Interface elements are updated to indicate current progress, status.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user