mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Add setHardwareModeTooltip(), fix webmanifest src attr
This commit is contained in:
		| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user