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);
|
||||
$('#col_right .col_header span.header_text').text(item_type + ' details');
|
||||
current_item
|
||||
.removeClass('processing')
|
||||
.removeClass('processing newborn')
|
||||
.addClass('active');
|
||||
|
||||
}).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
|
||||
* If that changes, change this too. */
|
||||
$list_cell.append('\
|
||||
<a class="status-todo task-link active"\
|
||||
<a class="status-todo task-link active newborn"\
|
||||
title="-save your task first-"\
|
||||
href="' + url + '"\
|
||||
data-task-id="' + task_id + '"\
|
||||
|
@@ -94,7 +94,7 @@ nav.sidebar
|
||||
cursor: pointer
|
||||
width: 100%
|
||||
display: inline-block
|
||||
padding: 5px
|
||||
padding: 2px
|
||||
|
||||
&:hover
|
||||
span.collapser
|
||||
@@ -206,6 +206,9 @@ nav.sidebar
|
||||
&.active
|
||||
background-image: none
|
||||
|
||||
&.newborn
|
||||
pointer-events: none
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
opacity: .8
|
||||
|
Reference in New Issue
Block a user