summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-widget-ms/common-widgets/news-widget
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-widget-ms/common-widgets/news-widget')
-rw-r--r--ecomp-portal-widget-ms/common-widgets/news-widget/js/controller.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/ecomp-portal-widget-ms/common-widgets/news-widget/js/controller.js b/ecomp-portal-widget-ms/common-widgets/news-widget/js/controller.js
index 13133339..b5880c0e 100644
--- a/ecomp-portal-widget-ms/common-widgets/news-widget/js/controller.js
+++ b/ecomp-portal-widget-ms/common-widgets/news-widget/js/controller.js
@@ -16,27 +16,7 @@ function NewsCtrl($rootScope, applicationsService , $log,
$scope.editData = JSON.stringify(availableData);
$scope.availableDataTemp = $scope.availableData;
- ngDialog.open({
- templateUrl : 'app/views/dashboard/dashboard-widget-manage.html',
- controller : 'CommonWidgetController',
- resolve : {
- message : function message() {
- var message = {
- type : resourceType,
- availableData : $scope.editData
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- if(resourceType=='NEWS'){
- $scope.updateNews();
- }else if(resourceType=='EVENTS'){
- $scope.updateEvents();
- }else if(resourceType=='IMPORTANTRESOURCES'){
- $scope.updateImportRes();
- }
- });
+
};
/*Setting News data*/