From 6c5548c2e48f298acaaac8811af24db181e30d6b Mon Sep 17 00:00:00 2001 From: shaktikatare1989 Date: Tue, 26 Apr 2016 20:53:21 +0530 Subject: [PATCH] =?UTF-8?q?Fix:=20Replacing=20custom=20gif=20image=20resul?= =?UTF-8?q?ts=20in=20old=20gif=20appearing=20in=20admin=E2=80=A6=20(#4199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: Replacing custom gif image results in old gif appearing in admin page * refactor as per the review comment --- app/assets/javascripts/admin/controllers/admin-emojis.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/controllers/admin-emojis.js.es6 b/app/assets/javascripts/admin/controllers/admin-emojis.js.es6 index 619d08c36f7..5277f2feb2e 100644 --- a/app/assets/javascripts/admin/controllers/admin-emojis.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-emojis.js.es6 @@ -3,7 +3,8 @@ export default Ember.ArrayController.extend({ actions: { emojiUploaded(emoji) { - this.pushObject(Em.Object.create(emoji)); + emoji.url += "?t=" + new Date().getTime(); + this.pushObject(Ember.Object.create(emoji)); }, destroy(emoji) {