1 app.controller("droolsListController", function ($scope,$http,droolsService, modalService, $modal) {
3 droolsService.getDrools().then(function(data){
6 $scope.tableData = JSON.parse(j.data);
10 console.log("failed");
14 $scope.viewPerPage = 20;
15 $scope.scrollViewsPerPage = 2;
16 $scope.currentPage = 1;
18 $scope.searchCategory = "";
19 $scope.searchString = "";
20 /* modalService.showSuccess('','Modal Sample') ; */
21 for(x in $scope.tableData){
22 if($scope.tableData[x].active_yn=='Y')
23 $scope.tableData[x].active_yn=true;
25 $scope.tableData[x].active_yn=false;
27 $scope.openDialog = function(droolFile){
28 droolsService.setSelectedFile(droolFile);
30 templateUrl: 'app/fusionapp/drools/view-models/droolsView.html',
31 controller: 'droolsViewController'
40 function openInNewTab(url) {
41 var win = window.open(url, '_blank');