MDL-14909 Preventing the border from being assigned to label list elements.

This commit is contained in:
nicolasconnault
2008-07-18 14:19:55 +00:00
parent 5bab878c29
commit c288ec21b2
+6 -2
View File
@@ -848,7 +848,9 @@ resource_class.prototype.clear_move_markers = function(target) {
resources = target.parentObj.resources;
}
for (var i=0; i<resources.length; i++) {
YAHOO.util.Dom.setStyle(resources[i].getEl().id, 'border', 'none');
if (resources[i].getEl() != null) {
YAHOO.util.Dom.setStyle(resources[i].getEl().id, 'border', 'none');
}
}
}
@@ -864,8 +866,10 @@ resource_class.prototype.onDragOver = function(e, ids) {
} else if (target.is == 'section' && target.resources.length > 0) {
// We need to have a border at the bottom of the last activity in
// that section.
YAHOO.util.Dom.setStyle(target.resources[target.resources.length - 1].getEl().id,
if (target.resources[target.resources.length - 1].getEl() != null) {
YAHOO.util.Dom.setStyle(target.resources[target.resources.length - 1].getEl().id,
'border-bottom', '1px solid #BBB');
}
}
}