summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/profile/profile.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-01-25 02:30:55 +0100
committerJules Laplace <julescarbon@gmail.com>2018-01-25 02:30:55 +0100
commit8631c4ba8e68fc6d29962597cc86ff06606037a5 (patch)
tree96038ee2b31d6c411ce4d92551bcea4bb7e39e2b /public/assets/js/lib/views/profile/profile.js
parent6a902c4dd6af4a903f80477fa05f9e698e8f2144 (diff)
more on profile
Diffstat (limited to 'public/assets/js/lib/views/profile/profile.js')
-rw-r--r--public/assets/js/lib/views/profile/profile.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/assets/js/lib/views/profile/profile.js b/public/assets/js/lib/views/profile/profile.js
index 4396414..14511f9 100644
--- a/public/assets/js/lib/views/profile/profile.js
+++ b/public/assets/js/lib/views/profile/profile.js
@@ -24,9 +24,10 @@ var ProfileView = View.extend({
this.populate(user)
// this.populateComments(topComments)
// this.comments.load(data.comments, data.thread)
- this.gallery.load(data.files)
- this.files.load(data.files)
- this.threadbox.load({ threads: data.threads })
+ this.gallery.load(files)
+ this.files.load(files)
+ this.files.sortByDate().reverse()
+ this.threadbox.load({ threads, user })
},
populate: function(user){