Fixed unable to click checkboxes in post upload

This commit is contained in:
Marcin Kurczewski 2014-09-20 09:24:57 +02:00
parent 4c75232a80
commit 8e6d7af3ea
2 changed files with 4 additions and 2 deletions

View file

@ -160,6 +160,8 @@ App.Presenters.PostUploadPresenter = function(
$row.find('img').mouseleave(postTableRowImageUnhovered); $row.find('img').mouseleave(postTableRowImageUnhovered);
$row.data('post', post); $row.data('post', post);
$table.find('tbody').append($row); $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); postChanged(post);

View file

@ -20,8 +20,8 @@
<thead> <thead>
<tr> <tr>
<th class="checkbox"> <th class="checkbox">
<input type="checkbox" name="select-all"/> <input id="post-upload-select-all" type="checkbox" name="select-all"/>
<label></label> <label for="post-upload-select-all"></label>
</th> </th>
<th class="thumbnail"></th> <th class="thumbnail"></th>
<th class="tags">Tags</th> <th class="tags">Tags</th>