Fixed permanent notification issue

pull/270/head
harisali45 2017-03-21 16:15:38 +04:00
parent 0c91aaeae6
commit fbf225ea75
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@
};
$scope.openToast = function () {
angular.extend(toastrConfig, $scope.options);
angular.extend(toastrConfig, $scope.options,{
timeOut: parseInt($scope.options.timeOut),
extendedTimeOut: parseInt($scope.options.extendedTimeOut)
});
openedToasts.push(toastr[$scope.options.type]($scope.options.msg, $scope.options.title));
var strOptions = {};
for (var o in $scope.options) if (o != 'msg' && o != 'title')strOptions[o] = $scope.options[o];