* List view - grid stuff
*/
.controller('ListCtrl',
- ['$scope','$q','$sce','$routeParams','$location','$timeout','$window','egCore',
+ ['$scope','$q','$routeParams','$location','$timeout','$window','egCore',
'egGridDataProvider','egItem','egUser','$uibModal','egCirc','egConfirmDialog',
'egProgressDialog', 'ngToast',
// function($scope , $q , $routeParams , $location , $timeout , $window , egCore ,
// egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
// egProgressDialog, ngToast) {
- function($scope , $q , $sce, $routeParams , $location , $timeout , $window , egCore , egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
+ function($scope , $q , $routeParams , $location , $timeout , $window , egCore , egGridDataProvider , itemSvc , egUser , $uibModal , egCirc , egConfirmDialog,
egProgressDialog, ngToast) {
var copyId = [];
var cp_list = $routeParams.idList;
$scope.update_inventory = function() {
var copy_list = gatherSelectedHoldingsIds();
- itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res,$scope) {
+ itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res) {
if (res[0]) {
- $scope.success_count = res[0];
- ngToast.create({
- content: $sce.trustAsHtml(egCore.strings.SUCCESS_UPDATE_INVENTORY),
- compileContent: true});
+ ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY);
} else {
ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY);
}