From 8168fa950fef0bd14d3d4424a0c0b5870cca3a25 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 26 Mar 2017 19:32:17 +0800 Subject: [PATCH] fix bug --- src/scripts/services/ariaNgCommonService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/services/ariaNgCommonService.js b/src/scripts/services/ariaNgCommonService.js index 67d718f..79463bb 100644 --- a/src/scripts/services/ariaNgCommonService.js +++ b/src/scripts/services/ariaNgCommonService.js @@ -28,7 +28,7 @@ confirm: function (title, text, type, callback, notClose, extendSettings) { var options = { title: $translate.instant(title), - text: $translate.instant(text, (extendSettings !== null ? extendSettings.textParams : null)), + text: $translate.instant(text, (angular.isObject(extendSettings) ? extendSettings.textParams : null)), type: type, showCancelButton: true, showLoaderOnConfirm: !!notClose,