Repository: incubator-usergrid Updated Branches: refs/heads/USERGRID-640 [created] e5ff7178e
[USERGRID-640] persist entities specified when adding a collection Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/e5ff7178 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/e5ff7178 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/e5ff7178 Branch: refs/heads/USERGRID-640 Commit: e5ff7178ea4b88f495fb555c96b236da447d7a5b Parents: b637535 Author: ryan bridges <[email protected]> Authored: Tue May 19 11:49:23 2015 -0400 Committer: ryan bridges <[email protected]> Committed: Tue May 19 11:49:23 2015 -0400 ---------------------------------------------------------------------- portal/js/global/ug-service.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e5ff7178/portal/js/global/ug-service.js ---------------------------------------------------------------------- diff --git a/portal/js/global/ug-service.js b/portal/js/global/ug-service.js index 7bc9d7c..46e0dc7 100644 --- a/portal/js/global/ug-service.js +++ b/portal/js/global/ug-service.js @@ -272,16 +272,14 @@ AppServices.Services.factory('ug', function(configuration, $rootScope, utility, return $rootScope.$broadcast('alert', 'error', 'error creating collection'); } - entity.destroy(function() { - self.getTopCollections(function(err, collections) { - if (err) { - $rootScope.$broadcast('alert', 'error', - 'error creating collection'); - } else { - $rootScope.$broadcast('collection-created', - collections); - } - }); + self.getTopCollections(function(err, collections) { + if (err) { + $rootScope.$broadcast('alert', 'error', + 'error creating collection'); + } else { + $rootScope.$broadcast('collection-created', + collections); + } }); }); },
