remove HTTP(S) schema for external bootstrap CSS file.

remove HTTP(S) schema from external bootstrap CSS file to avoid mixed content error.
v1.18.x
Danijel 9 years ago
parent a3e829e974
commit b7335c7a61

@ -64,7 +64,7 @@ define('forum/account/settings', ['forum/account/header', 'components', 'csrf'],
$('#bootswatchSkin').on('change', function() {
var css = $('#bootswatchCSS'),
val = $(this).val() === 'default' ? config['theme:src'] : 'http://maxcdn.bootstrapcdn.com/bootswatch/latest/' + $(this).val() + '/bootstrap.min.css';
val = $(this).val() === 'default' ? config['theme:src'] : '//maxcdn.bootstrapcdn.com/bootswatch/latest/' + $(this).val() + '/bootstrap.min.css';
css.attr('href', val);
});

Loading…
Cancel
Save