From 1ae45bdaa167b3696ebe5100a76d9359d0cb80a8 Mon Sep 17 00:00:00 2001 From: Jonathan Matthews <54287723+jmattt@users.noreply.github.com> Date: Mon, 19 Aug 2019 15:18:05 -0400 Subject: Fix grid view Signed-off-by: Jonathan Matthews --- apps/files/js/filelist.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a6665b0807..dc875d40c12 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -672,6 +672,11 @@ .addClass(show ? 'icon-toggle-filelist' : 'icon-toggle-pictures') $('.list-container').toggleClass('view-grid', show); + if (show) { + // If switching into grid view from list view, too few files might be displayed + // Try rendering the next page + this._onScroll(); + } }, /** -- cgit v1.2.3 -stable Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
blob: cb5aad21ac5ea55629e2949c199b1895f693fa31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89