From 289e081e2ef4804cab2c7d5c8ca0370c38a6adb8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 18 Dec 2013 23:18:12 -0500 Subject: [PATCH] fixed new composer posting (woot) --- public/src/modules/composer.js | 6 +++--- public/templates/composer.tpl | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 0d555e7d34..3ea750f8a9 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -162,7 +162,7 @@ define(['taskbar'], function(taskbar) { resizeEl = jPostContainer.find('.resizer'); jPostContainer.on('change', 'input, textarea', function() { - var uuid = $(this).parents('.post-window')[0].getAttribute('data-uuid'); + var uuid = $(this).parents('.composer').attr('data-uuid'); if (this.nodeName === 'INPUT') composer.posts[uuid].title = this.value; else if (this.nodeName === 'TEXTAREA') composer.posts[uuid].body = this.value; @@ -172,7 +172,7 @@ define(['taskbar'], function(taskbar) { jPostContainer.on('click', '.action-bar button', function() { var action = this.getAttribute('data-action'), - uuid = $(this).parents('.post-window').attr('data-uuid'); + uuid = $(this).parents('.composer').attr('data-uuid'); switch(action) { case 'post': composer.post(uuid); break; case 'discard': @@ -458,7 +458,7 @@ define(['taskbar'], function(taskbar) { } composer.minimize = function(uuid) { - composer.postContainer.style.display = 'none'; + composer.postContainer.style.visibility = 'hidden'; composer.active = undefined; taskbar.minimize('composer', uuid); } diff --git a/public/templates/composer.tpl b/public/templates/composer.tpl index 3f4f5a0193..daaaa9ec71 100644 --- a/public/templates/composer.tpl +++ b/public/templates/composer.tpl @@ -11,11 +11,12 @@ +
Drag and Drop Images Here
- - + +