From 8e6d7af3ea67ee8c60b05428f2f4d7ef98eeff2e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 20 Sep 2014 09:24:57 +0200 Subject: [PATCH] Fixed unable to click checkboxes in post upload --- public_html/js/Presenters/PostUploadPresenter.js | 2 ++ public_html/templates/post-upload.tpl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index 81d027fe..ea355285 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -160,6 +160,8 @@ App.Presenters.PostUploadPresenter = function( $row.find('img').mouseleave(postTableRowImageUnhovered); $row.data('post', post); $table.find('tbody').append($row); + $row.find('td.checkbox input').attr('id', _.uniqueId()); + $row.find('td.checkbox label').attr('for', $row.find('td.checkbox input').attr('id')); postChanged(post); diff --git a/public_html/templates/post-upload.tpl b/public_html/templates/post-upload.tpl index 989556f0..fa451fbb 100644 --- a/public_html/templates/post-upload.tpl +++ b/public_html/templates/post-upload.tpl @@ -20,8 +20,8 @@ - - + + Tags