Add 802.11ac tooltip help text, update messages + compile .mo

This commit is contained in:
billz
2023-03-20 19:14:24 +01:00
parent 9bc54336c2
commit e95f12e91e
6 changed files with 30 additions and 21 deletions

View File

@@ -389,13 +389,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();
var hwmodeText = '';
// Explanatory text if 802.11ac is disabled
if ($('#cbxhwmode').find('option[value="ac"]').prop('disabled') == true ) {
var hwmodeText = $('#hwmode').attr('data-tooltip');
}
$.post('ajax/networking/get_frequencies.php?',{'interface': iface},function(data){
responseText = JSON.parse(data);
$('#tiphwmode').attr('data-original-title', responseText);
var responseText = JSON.parse(data);
$('#tiphwmode').attr('data-original-title', responseText + '\n' + hwmodeText );
});
}