fix newestOnTop options

pull/3/head
alex 2016-01-20 17:05:20 +03:00
parent bd5f2cc120
commit 9120827646
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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) + ")";