From 8631c4ba8e68fc6d29962597cc86ff06606037a5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 25 Jan 2018 02:30:55 +0100 Subject: more on profile --- public/assets/js/lib/views/profile/profile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'public/assets/js/lib/views/profile/profile.js') 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){ -- cgit v1.2.3-70-g09d2