From b3ba48a22ce966e62cfad1671e4ee6f4357bb69f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 11 Jan 2018 13:55:55 +0100 Subject: move file api, debug flag on url to show ids --- public/assets/js/lib/views/details/gallery.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'public/assets/js/lib/views/details/gallery.js') diff --git a/public/assets/js/lib/views/details/gallery.js b/public/assets/js/lib/views/details/gallery.js index da6e97f..de9a6a4 100644 --- a/public/assets/js/lib/views/details/gallery.js +++ b/public/assets/js/lib/views/details/gallery.js @@ -31,16 +31,20 @@ var GalleryView = View.extend({ .replace(/{{thumb}}/g, thumb) .replace(/{{link}}/g, link) .replace(/{{age}}/g, age) - return t + var $t = $(t) + if (app.debug) { + $t.find('.date').append(', #' + file.id) + } + return $t }, prependFile: function(file){ - var $el = $( this.parse(file) ) + var $el = this.parse(file) this.$el.prepend($el) }, appendFile: function(file){ - var $el = $( this.parse(file) ) + var $el = this.parse(file) this.$el.append($el) }, -- cgit v1.2.3-70-g09d2