You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/06/02 12:25:57 UTC
[03/49] incubator-kylin git commit: KYLIN-779 ,
jump to cube list after create cube
KYLIN-779 ,jump to cube list after create cube
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/44a5ccb3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/44a5ccb3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/44a5ccb3
Branch: refs/heads/0.7.1
Commit: 44a5ccb35528b14b11238a881c281f0aa1a30da2
Parents: c8e5201
Author: jiazhong <ji...@ebay.com>
Authored: Fri May 22 14:24:02 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Fri May 22 14:24:02 2015 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/cubeEdit.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/44a5ccb3/webapp/app/js/controllers/cubeEdit.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeEdit.js b/webapp/app/js/controllers/cubeEdit.js
index e93ad5c..e371e3f 100755
--- a/webapp/app/js/controllers/cubeEdit.js
+++ b/webapp/app/js/controllers/cubeEdit.js
@@ -187,10 +187,10 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio
}, function (request) {
if (request.successful) {
$scope.state.cubeSchema = request.cubeDescData;
- MessageService.sendMsg($scope.cubeResultTmpl({
- 'text': 'Updated the cube successfully.',
- type: 'success'
- }), 'success', {}, true, 'top_center');
+
+ SweetAlert.swal('', 'Updated the cube successfully.', 'success');
+
+ $location.path("/cubes");
if (design_form) {
design_form.$invalid = true;
@@ -233,11 +233,11 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio
}, function (request) {
if (request.successful) {
$scope.state.cubeSchema = request.cubeDescData;
+
+ SweetAlert.swal('', 'Created the cube successfully.', 'success');
+
+ $location.path("/cubes");
- MessageService.sendMsg($scope.cubeResultTmpl({
- 'text': 'Created the cube successfully.',
- type: 'success'
- }), 'success', {}, true, 'top_center');
} else {
$scope.saveCubeRollBack();
$scope.cubeMetaFrame.project = $scope.state.project;