diff --git a/bower.json b/bower.json index e3115e6..ac889b8 100644 --- a/bower.json +++ b/bower.json @@ -20,7 +20,7 @@ "amcharts": "~3.15.2", "amcharts-stock": "*", "ammap": "~3.14.5", - "angular": "~1.4.6", + "angular": "~1.4.8", "angular-route": "~1.4.6", "angular-slimscroll": "~1.1.5", "angular-smart-table": "~2.1.3", diff --git a/src/app/pages/ui/notifications/NotificationsPageCtrl.js b/src/app/pages/ui/notifications/NotificationsPageCtrl.js index de78e38..08ef501 100644 --- a/src/app/pages/ui/notifications/NotificationsPageCtrl.js +++ b/src/app/pages/ui/notifications/NotificationsPageCtrl.js @@ -95,7 +95,7 @@ }; $scope.openToast = function () { - openedToasts.push(toastr[$scope.options.type]($scope.options.msg, $scope.options.title, $scope.options)); + openedToasts.push(toastr[$scope.options.type]($scope.options.msg, $scope.options.title, angular.copy($scope.options))); var strOptions = {}; for (var o in $scope.options) if (o != 'msg' && o != 'title')strOptions[o] = $scope.options[o]; $scope.optionsStr = "toastr." + $scope.options.type + "(\'" + $scope.options.msg + "\', \'" + $scope.options.title + "\', " + JSON.stringify(strOptions, null, 2) + ")";