From ad5e3ebce3cd5642c829688ee5e6e4a488b1c5c3 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 30 Aug 2013 12:36:06 -0400 Subject: [PATCH] closes #236 --- public/src/forum/topic.js | 7 ++++--- public/templates/topic.tpl | 35 ++++++++++++++++++++--------------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 3aa8ba5f68..5ff3091bb4 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -67,7 +67,8 @@ return false; }); - moveThreadModal.on('shown', function() { + moveThreadModal.on('shown.bs.modal', function() { + var loadingEl = document.getElementById('categories-loading'); if (loadingEl) { socket.once('api:categories.get', function(data) { @@ -383,7 +384,7 @@ this.innerHTML = data.content; $(this).fadeIn(250); }); - + if(data.uploadedImages && data.uploadedImages.length) { $('#images_'+data.pid).html(''); for(var i=0; i< data.uploadedImages.length; ++i) { @@ -393,7 +394,7 @@ } else { $('#images_'+data.pid).html(''); } - + console.log('time to recreate images', data); }); diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 27aabcd57d..7a3aa20b8e 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -170,23 +170,28 @@ -