1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Remove unfinished light/dark theme switching code.

This commit is contained in:
Dominic Clifton 2015-11-10 01:37:57 +00:00
parent 6f853cbc0a
commit ea2d59f4fb
3 changed files with 1 additions and 21 deletions

14
main.js
View file

@ -238,20 +238,6 @@ $(document).ready(function () {
googleAnalyticsConfig.setTrackingPermitted(check);
});
// CSS switch TEST
var css = $("#default");
$("div#options-window #remove").click(function(){
css.remove();
});
$("div#options-window #restore").click(function(){
$("head").append(css);
});
// CSS switch TEST END
function close_and_cleanup(e) {
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
$(document).unbind('click keyup', close_and_cleanup);