Fixed folders

This commit is contained in:
Andrew Henry 2015-10-28 14:56:34 -07:00
parent 929f06e6c1
commit 8fb6ab61ba

View File

@ -80,7 +80,8 @@ define(
function dragOver(e) { function dragOver(e) {
//Refresh domain object on each dragOver to catch external //Refresh domain object on each dragOver to catch external
// updates to the model // updates to the model
editableDomainObject = domainObject instanceof EditableDomainObject ? domainObject : new EditableDomainObject(domainObject, $q); //Don't use EditableDomainObject for folders, allow immediate persistence
editableDomainObject = domainObject instanceof EditableDomainObject || domainObject.getModel().type==='folder' ? domainObject : new EditableDomainObject(domainObject, $q);
actionCapability = editableDomainObject.getCapability('action'); actionCapability = editableDomainObject.getCapability('action');
var event = (e || {}).originalEvent || e, var event = (e || {}).originalEvent || e,