{ id : $scope.recordId, desc : evt.desc }
);
} else {
- loadRecord().then(processOnSaveCallbacks);
+ loadRecord().then($scope.processOnSaveCallbacks);
}
});
} else {
);
} else {
ngToast.create(egCore.strings.SUCCESS_UNDELETE_RECORD);
- loadRecord().then(processOnSaveCallbacks);
+ loadRecord().then($scope.processOnSaveCallbacks);
}
});
}
});
}
- processOnSaveCallbacks = function() {
+ $scope.processOnSaveCallbacks = function() {
var deferred = $q.defer();
if (typeof $scope.onSaveCallback !== 'undefined') {
var promise = deferred.promise;
$scope.bibSource = $scope.bib_source.id;
}
- return $timeout(processOnSaveCallbacks);
+ return $timeout($scope.processOnSaveCallbacks);
}
$scope.mangle_005();
alert('Could not create anonymous cache key!');
}
});
- }).then(loadRecord).then(processOnSaveCallbacks);
+ }).then(loadRecord).then($scope.processOnSaveCallbacks);
};
$scope.seeBreaker = function () {