CC-5778 : Improving Builder Rendering Time

fix for empty rows.
This commit is contained in:
Naomi 2014-04-03 18:00:32 -04:00
parent 090258e45b
commit 2f7cff2629
3 changed files with 11 additions and 9 deletions

View File

@ -120,7 +120,6 @@ div.sb-timerange input.error {
}
.marker {
background: url(images/tl-arrow.png) no-repeat scroll 3px 4px;
top: -9px;
display: block;
height: 9px;
left: -13px;
@ -140,7 +139,7 @@ tr.cursor-selected-row .marker {
}
table.datatable tr.cursor-selected-row td, table.datatable tr.cursor-selected-row th {
border-top: 1px solid rgba(215, 0, 0, 1) !important;
border-bottom: 1px solid rgba(215, 0, 0, 1) !important;
}
.sb-content .sb-past {
@ -256,7 +255,7 @@ table.datatable tr.sb-header.odd:hover td, table.datatable tr.sb-header.even:hov
margin-right:5px;
}
.sb-checkbox {
.sb-checkbox, .sb-empty td {
position: relative;
}

View File

@ -40,7 +40,7 @@ var AIRTIME = (function(AIRTIME) {
// process selected schedule rows to add media after.
$("#show_builder_table tr.cursor-selected-row").each(function(i, el) {
var data = $(el).prev().data("aData");
var data = $(el).data("aData");
aSchedIds.push( {
"id" : data.id,

View File

@ -568,6 +568,11 @@ var AIRTIME = (function(AIRTIME){
$node = $(nRow.children[0]);
$node.html('');
//putting the cursor on the screen
if (aData.allowed && $lib.length > 0 && $lib.filter(":visible").length > 0) {
$node.append('<div class="marker"></div>');
}
sSeparatorHTML = '<span>'+$.i18n._("Show Empty")+'</span>';
cl = cl + " sb-empty odd";
@ -622,11 +627,9 @@ var AIRTIME = (function(AIRTIME){
$node.html('<input type="checkbox" name="'+aData.id+'"></input>');
//putting the cursor on the screen
if (aData.scheduled == 2) {
if ($lib.length > 0 && $lib.filter(":visible").length > 0) {
$node.append('<div class="marker"></div>');
}
}
if ($lib.length > 0 && $lib.filter(":visible").length > 0) {
$node.append('<div class="marker"></div>');
}
}
else {
$node.html('');