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

remove HTTP(S) schema from external bootstrap CSS file to avoid mixed content error.
This commit is contained in:
Danijel
2016-04-17 15:38:43 +02:00
parent a3e829e974
commit b7335c7a61

View File

@@ -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);
});