From 80ffc92cca87ac6ddaad4c7b6cb1078c5586e6b3 Mon Sep 17 00:00:00 2001 From: jiazhong Date: Mon, 15 Dec 2014 10:11:02 +0800 Subject: [PATCH] rm deprecated code --- webapp/app/js/controllers/cube.js | 1 - webapp/app/js/controllers/cubes.js | 7 ------- webapp/app/js/controllers/job.js | 1 - 3 files changed, 9 deletions(-) diff --git a/webapp/app/js/controllers/cube.js b/webapp/app/js/controllers/cube.js index 51df3be..1f1ae1e 100644 --- a/webapp/app/js/controllers/cube.js +++ b/webapp/app/js/controllers/cube.js @@ -50,7 +50,6 @@ KylinApp.controller('CubeCtrl', function ($scope, AccessService, MessageService, $scope.updateNotifyList = function (cube) { cube.detail.notify_list = cube.notifyListString.split(","); CubeService.updateNotifyList({cubeId: cube.name}, cube.detail.notify_list, function () { -// MessageService.sendMsg('Notify List updated successfully!', 'success', {}); SweetAlert.swal('Success!', 'Notify List updated successfully!', 'success'); },function(e){ if(e.data&& e.data.exception){ diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js index b055487..5574ef7 100644 --- a/webapp/app/js/controllers/cubes.js +++ b/webapp/app/js/controllers/cubes.js @@ -131,7 +131,6 @@ KylinApp if(isConfirm){ CubeService.enable({cubeId: cube.name}, {}, function (result) { cube.status = 'READY'; -// MessageService.sendMsg('Enable job was submitted successfully', 'success', {}); SweetAlert.swal('Success!', 'Enable job was submitted successfully', 'success'); },function(e){ if(e.data&& e.data.exception){ @@ -144,12 +143,6 @@ KylinApp }); } }); -// if (confirm("Are you sure to enable the cube? Please note: if cube schema is changed in the disabled period, all segments of the cube will be discarded due to data and schema mismatch.")) { -// CubeService.enable({cubeId: cube.name}, {}, function (result) { -// cube.status = 'READY'; -// MessageService.sendMsg('Enable job was submitted successfully', 'success', {}); -// }); -// } }; $scope.purge = function (cube) { diff --git a/webapp/app/js/controllers/job.js b/webapp/app/js/controllers/job.js index 5fb60db..69eacac 100644 --- a/webapp/app/js/controllers/job.js +++ b/webapp/app/js/controllers/job.js @@ -116,7 +116,6 @@ KylinApp if (angular.isDefined($scope.state.selectedJob)) { $scope.state.selectedJob = $scope.jobs[ $scope.state.selectedJob.uuid]; } -// MessageService.sendMsg('Job was resumed successfully', 'success', {}); SweetAlert.swal('Success!', 'Job has been resumed successfully!', 'success'); },function(e){ if(e.data&& e.data.exception){