| | |
| | | 'app', 'angular' |
| | | ], |
| | | function (app, angular) { |
| | | app.controller('apiSettingController', ['$scope', '$rootScope', '$log', '$resourceProvider', 'SweetAlert', '$timeout', '$filter', |
| | | function ($scope, $rootScope, $log, $resourceProvider, SweetAlert, $timeout, $filter) { |
| | | app.controller('apiSettingController', ['$scope', '$rootScope', '$log', '$resourceProvider','$uibModal', 'SweetAlert', '$timeout', '$filter', |
| | | function ($scope, $rootScope, $log, $resourceProvider, $uibModal, SweetAlert, $timeout, $filter) { |
| | | |
| | | $scope.fn = { |
| | | |
| | | changeTab : changeTab, |
| | | add : add, |
| | | }; |
| | | |
| | | $scope.vm = { |
| | | tab : "API_COL_SETTING", |
| | | form : { |
| | | |
| | | } |
| | | }; |
| | | |
| | | // 생성 팝업 |
| | | function add() { |
| | | $uibModal.open({ |
| | | templateUrl : 'views/api/apiOverlapAdd.html', |
| | | size : "sm", |
| | | // controller : 'apiOverlapAddController', |
| | | backdrop : 'static' |
| | | }); |
| | | } |
| | | |
| | | function changeTab(tab) { |
| | | $scope.vm.tab = tab; |
| | | |
| | | if (tab === "API_COL_SETTING") { |
| | | $rootScope.$broadcast("changeColumnSettingTab"); |
| | | } else if (tab === "API_OVERLAP_SETTING") { |
| | | $rootScope.$broadcast("changeOverlapSettingTab"); |
| | | } |
| | | } |
| | | |
| | | }]); |
| | | }); |