Showing the changes to assets/javascripts/views/content (1 of 23 files). Show all
Unified · Split
| @@ -24,18 +24,18 @@ class app.views.EntryPage extends app.View · 23 unmodified lines | ||
| 24 | 24 | @trigger 'loading' |
| 25 | 25 | return |
| 26 | 26 | |
| 27 | − render: (content = '') -> | |
| 27 | + render: (content = '', fromCache = false) -> | |
| 28 | 28 | return unless @activated |
| 29 | 29 | @empty() |
| 30 | 30 | |
| 31 | 31 | @subview = new (@subViewClass()) @el, @entry |
| 32 | − @subview.render(content) | |
| 32 | + @subview.render(content, fromCache) | |
| 33 | 33 | |
| 34 | 34 | if app.disabledDocs.findBy 'slug', @entry.doc.slug |
| 35 | 35 | @hiddenView = new app.views.HiddenPage @el, @entry |
| 36 | 36 | |
| 37 | 37 | @trigger 'loaded' |
| 38 | − @delay @addClipboardLinks | |
| 38 | + @delay @addClipboardLinks unless fromCache | |
| 39 | 39 | return |
| 40 | 40 | |
| 41 | 41 | CLIPBOARD_LINK = '<a class="_pre-clip" title="Copy to clipboard"></a>' |
| @@ -122,7 +122,7 @@ class app.views.EntryPage extends app.View · 80 unmodified lines | ||
| 122 | 122 | |
| 123 | 123 | restore: -> |
| 124 | 124 | if @cacheMap[path = @entry.filePath()] |
| 125 | − @render @cacheMap[path] | |
| 125 | + @render @cacheMap[path], true | |
| 126 | 126 | true |
| 127 | 127 | |
| 128 | 128 | onClick: (event) => |