Fixed clickable rows while upload is ongoing
This commit is contained in:
parent
8e6d7af3ea
commit
a3fbe80281
2 changed files with 11 additions and 1 deletions
1
TODO
1
TODO
|
@ -3,7 +3,6 @@ first major release.
|
|||
|
||||
everything related to posts:
|
||||
- uploads
|
||||
- user shouldn't be able click form rows when upload is active
|
||||
- fix thumbnails for files that are neither youtube or images
|
||||
|
||||
- post list
|
||||
|
|
|
@ -197,6 +197,9 @@ App.Presenters.PostUploadPresenter = function(
|
|||
|
||||
function postTableRowClicked(e) {
|
||||
e.preventDefault();
|
||||
if (!interactionEnabled) {
|
||||
return;
|
||||
}
|
||||
var $allCheckboxes = jQuery(this).parents('table').find('tbody input[type=checkbox]');
|
||||
var $myCheckbox = jQuery(this).parents('tr').find('input[type=checkbox]');
|
||||
$allCheckboxes.prop('checked', false);
|
||||
|
@ -205,6 +208,10 @@ App.Presenters.PostUploadPresenter = function(
|
|||
}
|
||||
|
||||
function postTableCheckboxClicked(e) {
|
||||
if (!interactionEnabled) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (e.target.nodeName === 'TD') {
|
||||
var checkbox = jQuery(this).find('input[type=checkbox]');
|
||||
checkbox.prop('checked', !checkbox.prop('checked'));
|
||||
|
@ -213,6 +220,10 @@ App.Presenters.PostUploadPresenter = function(
|
|||
}
|
||||
|
||||
function postTableSelectAllCheckboxClicked(e) {
|
||||
if (!interactionEnabled) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
var $checkbox = jQuery(this).find('input[type=checkbox]');
|
||||
if (e.target.nodeName === 'TH') {
|
||||
$checkbox.prop('checked', !$checkbox.prop('checked'));
|
||||
|
|
Loading…
Reference in a new issue