Moved PreferenceStore initialization into head.html
Этот коммит содержится в:
@@ -6,7 +6,7 @@
|
||||
<body>
|
||||
<div id="channel_view" class='channel-view'></div>
|
||||
<script>
|
||||
window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .Preferences }});
|
||||
window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }});
|
||||
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
|
||||
var modals = $('.modal-body').not('.edit-modal-body');
|
||||
if($(window).height() > 1200){
|
||||
|
||||
@@ -74,6 +74,11 @@
|
||||
window.mm_user = {{ .User }};
|
||||
window.mm_channel = {{ .Channel }};
|
||||
window.mm_locale = {{ .Locale }};
|
||||
window.mm_preferences = {{ .Preferences }};
|
||||
|
||||
$(function() {
|
||||
PreferenceStore.setPreferences(window.mm_preferences);
|
||||
});
|
||||
|
||||
if ({{.SessionTokenIndex}} >= 0) {
|
||||
window.mm_session_token_index = {{.SessionTokenIndex}};
|
||||
|
||||
Ссылка в новой задаче
Block a user