Style new tasks so we can identify them and avoid double-load
This commit is contained in:
@@ -67,7 +67,7 @@ function item_open(item_id, item_type, pushState, project_url)
|
|||||||
$('#item-details').html(item_data);
|
$('#item-details').html(item_data);
|
||||||
$('#col_right .col_header span.header_text').text(item_type + ' details');
|
$('#col_right .col_header span.header_text').text(item_type + ' details');
|
||||||
current_item
|
current_item
|
||||||
.removeClass('processing')
|
.removeClass('processing newborn')
|
||||||
.addClass('active');
|
.addClass('active');
|
||||||
|
|
||||||
}).fail(function(xhr) {
|
}).fail(function(xhr) {
|
||||||
@@ -189,7 +189,7 @@ function task_add(shot_id, task_id, task_type)
|
|||||||
/* WARNING: This is a copy of an element of attract/shots/for_project .item-list.col-list
|
/* WARNING: This is a copy of an element of attract/shots/for_project .item-list.col-list
|
||||||
* If that changes, change this too. */
|
* If that changes, change this too. */
|
||||||
$list_cell.append('\
|
$list_cell.append('\
|
||||||
<a class="status-todo task-link active"\
|
<a class="status-todo task-link active newborn"\
|
||||||
title="-save your task first-"\
|
title="-save your task first-"\
|
||||||
href="' + url + '"\
|
href="' + url + '"\
|
||||||
data-task-id="' + task_id + '"\
|
data-task-id="' + task_id + '"\
|
||||||
|
@@ -94,7 +94,7 @@ nav.sidebar
|
|||||||
cursor: pointer
|
cursor: pointer
|
||||||
width: 100%
|
width: 100%
|
||||||
display: inline-block
|
display: inline-block
|
||||||
padding: 5px
|
padding: 2px
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
span.collapser
|
span.collapser
|
||||||
@@ -206,6 +206,9 @@ nav.sidebar
|
|||||||
&.active
|
&.active
|
||||||
background-image: none
|
background-image: none
|
||||||
|
|
||||||
|
&.newborn
|
||||||
|
pointer-events: none
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
&:before
|
&:before
|
||||||
opacity: .8
|
opacity: .8
|
||||||
|
Reference in New Issue
Block a user