mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
removing obsolete notify, first hooks to GUI.log
This commit is contained in:
parent
7fb560acb1
commit
a30569077a
5 changed files with 6 additions and 20 deletions
10
main.js
10
main.js
|
@ -35,7 +35,7 @@ $(document).ready(function() {
|
|||
$('a', tabs).click(function() {
|
||||
if ($(this).parent().hasClass('active') == false) { // only initialize when the tab isn't already active
|
||||
if (configuration_received == false) { // if there is no active connection, return
|
||||
notify('You need to connect before you can view any of the tabs', 'red');
|
||||
GUI.log('You need to connect before you can view any of the tabs', 'red');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -151,14 +151,6 @@ $(document).ready(function() {
|
|||
});
|
||||
});
|
||||
|
||||
function notify(message, color) {
|
||||
$('span.notify').html('<span style="color: ' + color + '">' + message + '</span>');+
|
||||
$('span.notify span').fadeOut(5000, function() {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function microtime() {
|
||||
var now = new Date().getTime() / 1000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue