mirror of https://github.com/akveo/blur-admin
fix newestOnTop options
parent
bd5f2cc120
commit
9120827646
|
@ -20,7 +20,7 @@
|
||||||
"amcharts": "~3.15.2",
|
"amcharts": "~3.15.2",
|
||||||
"amcharts-stock": "*",
|
"amcharts-stock": "*",
|
||||||
"ammap": "~3.14.5",
|
"ammap": "~3.14.5",
|
||||||
"angular": "~1.4.6",
|
"angular": "~1.4.8",
|
||||||
"angular-route": "~1.4.6",
|
"angular-route": "~1.4.6",
|
||||||
"angular-slimscroll": "~1.1.5",
|
"angular-slimscroll": "~1.1.5",
|
||||||
"angular-smart-table": "~2.1.3",
|
"angular-smart-table": "~2.1.3",
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openToast = function () {
|
$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 = {};
|
var strOptions = {};
|
||||||
for (var o in $scope.options) if (o != 'msg' && o != 'title')strOptions[o] = $scope.options[o];
|
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) + ")";
|
$scope.optionsStr = "toastr." + $scope.options.type + "(\'" + $scope.options.msg + "\', \'" + $scope.options.title + "\', " + JSON.stringify(strOptions, null, 2) + ")";
|
||||||
|
|
Loading…
Reference in New Issue