[PATCH] [Wok] Fixed i18n popup message issue
by rajgupta@linux.vnet.ibm.com
From: Rajat Gupta <rajat.triumph(a)gmail.com>
Fixed i18n messages display issue for modal dialogs
---
ui/js/src/wok.message.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/wok.message.js b/ui/js/src/wok.message.js
index d602805..b74d188 100644
--- a/ui/js/src/wok.message.js
+++ b/ui/js/src/wok.message.js
@@ -57,10 +57,10 @@ wok.message.error = function(msg, node, closeable) {
"use strict";
wok.message(msg, 'alert-danger', node, closeable);
};
-wok.message.error.code = function(code) {
+wok.message.error.code = function(code, node, closeable) {
"use strict";
var msg = code + ": " + i18n[code];
- wok.message(msg, 'alert-danger');
+ wok.message(msg, 'alert-danger', node, closeable);
};
wok.message.success = function(msg, node, closeable) {
"use strict";
--
2.4.3