... | ... |
@@ -1,6 +1,7 @@ |
1 | 1 |
.conversation.clear.border |
2 | 2 |
.history-settings |
3 |
- %a.left.load-history{href: '#'} #{I18n.t('chat.history.load')} |
|
3 |
+ -unless @hideHistoryLoading |
|
4 |
+ %a.left.load-history{href: '#'} #{I18n.t('chat.history.load')} |
|
4 | 5 |
|
5 | 6 |
%input.hidden{ type: 'checkbox', name: 'enable-history', value: '1', id: 'ihistory', checked: 'checked'} |
6 | 7 |
%label.right.action.enabled{ for: 'ihistory' } #{I18n.t('chat.history.disable')} |
... | ... |
@@ -10,5 +11,4 @@ |
10 | 10 |
.messages#height-setter-2 |
11 | 11 |
-for view in @history |
12 | 12 |
#{view} |
13 |
- -if @showWriter |
|
14 |
- != JST['backbone/templates/chat/message_writer']() |
|
15 | 13 |
\ No newline at end of file |
14 |
+ != JST['backbone/templates/chat/message_writer']() |
|
16 | 15 |
\ No newline at end of file |
... | ... |
@@ -33,7 +33,7 @@ class Xmpp.Views.Chat.WindowView extends Backbone.View |
33 | 33 |
historyStackHtml = _.map(@historyStack, (view) -> |
34 | 34 |
view.render().el.outerHTML |
35 | 35 |
) |
36 |
- $(@el).html(@template(showWriter: true, history: historyStackHtml)) |
|
36 |
+ $(@el).html(@template(hideHistoryLoading: @tab.getChatId() != null, history: historyStackHtml)) |
|
37 | 37 |
@_changeHistoryVisibly(@savingHistory) |
38 | 38 |
|
39 | 39 |
@show() |