Fixed unable to click checkboxes in post upload
This commit is contained in:
parent
4c75232a80
commit
8e6d7af3ea
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue