MDL-14909 Preventing the border from being assigned to label list elements.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user