mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 13:55:14 +03:00
Replaced jbox dialogues.
This commit is contained in:
parent
357b6c0998
commit
c2fff5bc47
6 changed files with 82 additions and 15 deletions
|
@ -238,15 +238,29 @@ function onOpen(openInfo) {
|
|||
});
|
||||
});
|
||||
} else {
|
||||
GUI.show_modal(chrome.i18n.getMessage('warningTitle'),
|
||||
chrome.i18n.getMessage('firmwareTypeNotSupported'));
|
||||
var dialog = $('.dialogConnectWarning')[0];
|
||||
|
||||
$('.dialogConnectWarning-content').html(chrome.i18n.getMessage('firmwareTypeNotSupported'));
|
||||
|
||||
$('.dialogConnectWarning-closebtn').click(function() {
|
||||
dialog.close();
|
||||
});
|
||||
|
||||
dialog.showModal();
|
||||
|
||||
connectCli();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
GUI.show_modal(chrome.i18n.getMessage('warningTitle'),
|
||||
chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.apiVersionAccepted]));
|
||||
var dialog = $('.dialogConnectWarning')[0];
|
||||
|
||||
$('.dialogConnectWarning-content').html(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.apiVersionAccepted]));
|
||||
|
||||
$('.dialogConnectWarning-closebtn').click(function() {
|
||||
dialog.close();
|
||||
});
|
||||
|
||||
dialog.showModal();
|
||||
|
||||
connectCli();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue