Fixed cancel and drop-initiated edit

This commit is contained in:
Henry
2015-11-20 13:59:32 -08:00
parent 4f0f9e4104
commit 7849803a5d
4 changed files with 6 additions and 10 deletions

View File

@@ -75,6 +75,7 @@ define(
var editableObject;
if (!this.domainObject.hasCapability("editor")) {
editableObject = new EditableDomainObject(this.domainObject, this.$q);
editableObject.getCapability('status').set('editing', true);
this.navigationService.setNavigation(editableObject);
}
//this.$location.path("/edit");

View File

@@ -118,7 +118,6 @@ define(
cache = new EditableDomainObjectCache(EditableDomainObjectImpl, $q);
cachedObject = cache.getEditableObject(domainObject);
cachedObject.getCapability('status').set('editing', true);
return cachedObject;
}