vm.deselectAllRequests = deselectAllRequests;
vm.filterCollReq = filterCollReq;
-
-
-
/**
* Save request obje to collection from other controller
* @param reqObj
else {
clearFileInputValue();
}
+ removeButtonBackground();
+
+ function removeButtonBackground() {
+ $('#importCollection').next().css({ 'background': 'transparent' });
+ }
}
function toggleCollectionsSort() {
}
});
- $scope.$on('YANGMAN_REFRESH_COLLECTIONS', loadCollectionsList);
+ $scope.$on('YANGMAN_REFRESH_COLLECTIONS', function (event, params){
+ loadCollectionsList();
+ (params.cbk || angular.noop)();
+ });
// list type dependend operations
if (mainList === 'history') {
// saving from request header
$scope.$on('YANGMAN_SAVE_REQUEST_TO_COLLECTION', saveRequestFromExt);
// saving collections expanded status on refresh
- $scope.$on('YANGMAN_REFRESH_AND_EXPAND_COLLECTIONS', function(event, params){
- $scope.rootBroadcast('YANGMAN_REFRESH_COLLECTIONS');
- (params.cbk || angular.noop)();
+ $scope.$on('YANGMAN_REFRESH_AND_EXPAND_COLLECTIONS', function(){
+ var expandedColNames = vm.collectionList.getExpandedCollectionNames();
+ $scope.rootBroadcast('YANGMAN_REFRESH_COLLECTIONS', {}, function (){
+ vm.collectionList.expandCollectionByNames(expandedColNames);
+ });
});
}
-
-
}
* Refresh and expand collections
*/
function refreshCollectionsWithExpansion(){
- var expandedCollNames = vm.collectionList.getExpandedCollectionNames();
- $scope.rootBroadcast('YANGMAN_REFRESH_AND_EXPAND_COLLECTIONS', null, function (){
- vm.collectionList.expandCollectionByNames(expandedCollNames);
- });
+ $scope.rootBroadcast('YANGMAN_REFRESH_AND_EXPAND_COLLECTIONS');
}
}