Skip to content

Commit

Permalink
Clean up debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 17, 2017
1 parent 083140b commit 4b63e5f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 20 deletions.
1 change: 0 additions & 1 deletion ui/app/scripts/controllers/admin/AdminObservablesCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
ListSrv['delete']({
'listId': datatype.id
}, function(data) {
console.log(data);
NotificationSrv.log('The datatype ' + datatype.value + ' has been removed', 'success');
$scope.load();
}, function(response) {
Expand Down
1 change: 0 additions & 1 deletion ui/app/scripts/controllers/case/CaseObservablesItemCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
return item.base.details;
}), 'status');

console.log(statuses);
if(statuses.indexOf('Success') > -1) {
CaseArtifactSrv.api().get({
'artifactId': observableId
Expand Down
4 changes: 1 addition & 3 deletions ui/app/scripts/controllers/case/ObservableCreationCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,10 @@
data: observable.object.data,
type: observable.type
};
});
});
};

$scope.handleSaveSuccess = function(response) {
console.log('Observable create modal closed');

var success = 0,
failure = 0;

Expand Down
7 changes: 3 additions & 4 deletions ui/app/scripts/directives/utils/autofocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
return {
restrict: 'A',
link: function ($scope, $element, attr) {

$scope.$on(attr.autofocus, function() {
console.log('Event received = ' + attr.autofocus);
$timeout(function() {
$element[0].focus();
}, 0);
});

});
}
}
});
Expand Down
11 changes: 0 additions & 11 deletions ui/app/scripts/services/ObservablesUISrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,6 @@
convertFn = filterDef.convert || angular.identity;

// Prepare the filter value
/*
if(factory.hasFilter(field)) {
var oldValue = factory.getFilterValue(field);
console.log('Filter ['+field+'] already exists = ' + oldValue);
if(factory.filterDefs[field].type === 'list') {
value = angular.isArray(oldValue) ? oldValue.push({text: value}) : [{text: oldValue}, {text: value}];
}
}
*/

if (field === 'keyword') {
query = value;
} else if (angular.isArray(value) && value.length > 0) {
Expand Down

0 comments on commit 4b63e5f

Please sign in to comment.