[Layout] Add commit to scope

Add a commit function to scope from the edit representer;
this avoids issues trying to transparently detect and
persist changes made during edit mode, while still requiring
only minimal action from individual views. WTD-535.
This commit is contained in:
Victor Woeltjen
2014-12-06 09:38:28 -08:00
parent 5faf81e9a5
commit 3f41dc716f
3 changed files with 20 additions and 16 deletions

View File

@ -158,6 +158,10 @@ define(
// Store the position of this panel.
$scope.configuration.panels[activeDragId] =
rawPositions[activeDragId];
// Mark this object as dirty to encourage persistence
if ($scope.commit) {
$scope.commit("Moved frame.");
}
}
};