mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-24 00:20:23 +00:00
Add setHardwareModeTooltip(), fix webmanifest src attr
This commit is contained in:
parent
6faa6d749a
commit
01af3d1c52
2 changed files with 13 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue