You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/10/26 10:07:49 UTC
[03/45] incubator-kylin git commit: KYLIN-1036, Code Clean
KYLIN-1036, Code Clean
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/66ae35a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/66ae35a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/66ae35a1
Branch: refs/heads/master
Commit: 66ae35a17c407f3ca5cd9026279c40c6c8ffbd28
Parents: df15cad
Author: jiazhong <ji...@ebay.com>
Authored: Mon Sep 21 14:28:08 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Mon Sep 21 14:28:08 2015 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/job.js | 7 -------
webapp/app/js/controllers/sourceMeta.js | 6 ------
webapp/app/partials/tables/source_table_tree.html | 3 +--
3 files changed, 1 insertion(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/js/controllers/job.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/job.js b/webapp/app/js/controllers/job.js
index 79913e1..b1360aa 100644
--- a/webapp/app/js/controllers/job.js
+++ b/webapp/app/js/controllers/job.js
@@ -25,7 +25,6 @@ KylinApp
JobList.removeAll();
$scope.jobConfig = jobConfig;
$scope.cubeName = null;
- $scope.projects = [];
$scope.action = {};
$scope.status = [];
@@ -49,12 +48,6 @@ KylinApp
projectName: $scope.projectModel.selectedProject
};
- ProjectService.list({}, function (projects) {
- angular.forEach(projects, function (project, index) {
- $scope.projects.push(project.name);
- });
- });
-
$scope.list = function (offset, limit) {
var defer = $q.defer();
if (!$scope.projectModel.projects.length) {
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/js/controllers/sourceMeta.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/sourceMeta.js b/webapp/app/js/controllers/sourceMeta.js
index 91e771b..d05dc7f 100755
--- a/webapp/app/js/controllers/sourceMeta.js
+++ b/webapp/app/js/controllers/sourceMeta.js
@@ -76,12 +76,6 @@ KylinApp
}
};
- $scope.selectedNode = function(obj){
- if (obj&&obj.uuid) {
- return $scope.tableModel.selectedSrcTable;
- }
- }
-
$scope.aceSrcTbChanged = function () {
$scope.tableModel.selectedSrcDb = [];
$scope.tableModel.selectedSrcTable = {};
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/partials/tables/source_table_tree.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/tables/source_table_tree.html b/webapp/app/partials/tables/source_table_tree.html
index 1e6e08f..bdbe079 100755
--- a/webapp/app/partials/tables/source_table_tree.html
+++ b/webapp/app/partials/tables/source_table_tree.html
@@ -38,8 +38,7 @@
dirSelection="true"
tree-model="tableModel.selectedSrcDb"
options="tableModel.treeOptions"
- on-selection="showSelected(node)"
- selected-node="selectedNode(node)">
+ on-selection="showSelected(node)">
{{node.name}} {{!!(node.datatype)?'(' + trimType(node.datatype) + ')' : ''}}
</treecontrol>
</div>