Skip to content

Commit 82569d4

Browse files
authored
Merge pull request #436 from McGiverGim/fix_fade_header
Fix fade header
2 parents 6d5ae03 + 7bc7f12 commit 82569d4

19 files changed

+4100
-14376
lines changed

css/bootstrap-theme.css

Lines changed: 0 additions & 587 deletions
This file was deleted.

css/bootstrap-theme.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

css/bootstrap-theme.min.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

css/bootstrap.css

Lines changed: 0 additions & 6800 deletions
This file was deleted.

css/bootstrap.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

css/bootstrap.min.css

Lines changed: 0 additions & 5 deletions
This file was deleted.
-19.7 KB
Binary file not shown.

fonts/glyphicons-halflings-regular.svg

Lines changed: 0 additions & 288 deletions
This file was deleted.
-44.3 KB
Binary file not shown.
-22.9 KB
Binary file not shown.
-17.6 KB
Binary file not shown.

gulpfile.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var nwBuilderOptions = {
3232
files: './dist/**/*',
3333
macIcns: './images/bf_icon.icns',
3434
macPlist: { 'CFBundleDisplayName': 'Betaflight Blackbox Explorer'},
35-
winIco: './images/bf_icon.ico'
35+
winIco: './images/bf_icon.ico',
3636
};
3737

3838
//-----------------
@@ -208,12 +208,6 @@ function clean_cache() {
208208
function dist() {
209209
var distSources = [
210210
// CSS files
211-
'./css/bootstrap-theme.css',
212-
'./css/bootstrap-theme.css.map',
213-
'./css/bootstrap-theme.min.css',
214-
'./css/bootstrap.css',
215-
'./css/bootstrap.css.map',
216-
'./css/bootstrap.min.css',
217211
'./css/header_dialog.css',
218212
'./css/jquery.nouislider.min.css',
219213
'./css/keys_dialog.css',
@@ -263,14 +257,11 @@ function dist() {
263257
'./js/csv-exporter.js',
264258
'./js/webworkers/csv-export-worker.js',
265259
'./js/vendor/FileSaver.js',
266-
'./js/vendor/bootstrap.js',
267-
'./js/vendor/bootstrap.min.js',
268260
'./js/vendor/jquery-1.11.3.min.js',
269261
'./js/vendor/jquery-ui-1.11.4.min.js',
270262
'./js/vendor/jquery.ba-throttle-debounce.js',
271263
'./js/vendor/jquery.nouislider.all.min.js',
272264
'./js/vendor/modernizr-2.6.2-respond-1.1.0.min.js',
273-
'./js/vendor/npm.js',
274265
'./js/vendor/semver.js',
275266
'./js/vendor/three.js',
276267
'./js/vendor/three.min.js',
@@ -283,7 +274,6 @@ function dist() {
283274
'./*.html',
284275
'./images/**/*',
285276
'./_locales/**/*',
286-
'./fonts/*',
287277
];
288278
return gulp.src(distSources, { base: '.' })
289279
.pipe(gulp.dest(DIST_DIR))

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<meta name="description" content="">
1010
<meta name="viewport" content="width=device-width, initial-scale=1">
1111

12-
<link rel="stylesheet" href="css/bootstrap.min.css">
13-
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
12+
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
13+
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css">
1414
<link rel="stylesheet" href="css/jquery.nouislider.min.css">
1515
<link rel="stylesheet" href="css/main.css">
1616
<link rel="stylesheet" href="css/header_dialog.css">
@@ -2770,7 +2770,7 @@ <h4 class="modal-title">Advanced User Settings</h4>
27702770
<script src="js/real.js"></script>
27712771
<script src="js/vendor/jquery-1.11.3.min.js"></script>
27722772
<script src="js/vendor/jquery-ui-1.11.4.min.js"></script>
2773-
<script src="js/vendor/bootstrap.min.js"></script>
2773+
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
27742774
<script src="js/vendor/jquery.ba-throttle-debounce.js"></script>
27752775
<script src="js/vendor/three.min.js"></script>
27762776
<script src="js/vendor/jquery.nouislider.all.min.js"></script>

js/header_dialog.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,23 @@ function HeaderDialog(dialog, onSave) {
810810
// Public variables
811811

812812
this.show = function(sysConfig) {
813-
dialog.modal('toggle');
814-
if (dialog.data('bs.modal').isShown) {
813+
814+
// Workaround to pressing the shortcut key multiple times
815+
// The modal-backdrop isn't removed
816+
// Remove it manually
817+
dialog.one('hidden.bs.modal', function() {
818+
$('.modal-backdrop').remove();
819+
});
820+
821+
dialog.one('show.bs.modal', function() {
815822
renderSysConfig(sysConfig);
816823
// Disable changing input and dropdowns
817824
$('#dlgHeaderDialog input').prop('disabled', 'disabled');
818825
$('#dlgHeaderDialog select').prop('disabled', 'disabled');
819-
}
826+
});
827+
828+
dialog.modal('toggle');
829+
820830
}
821831

822832
// Buttons

0 commit comments

Comments
 (0)