From 5a1816a5d4b64db04a0cdf38e2bf5beb58f5f69d Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 14 Dec 2015 12:09:58 -0500 Subject: [PATCH] (js) Allow HTML in Dialog alert and confirm Fixes #177 --- UI/WebServerResources/js/Common/Dialog.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/Dialog.service.js b/UI/WebServerResources/js/Common/Dialog.service.js index 04adebe81..f9301c9ae 100644 --- a/UI/WebServerResources/js/Common/Dialog.service.js +++ b/UI/WebServerResources/js/Common/Dialog.service.js @@ -19,7 +19,7 @@ Dialog.alert = function(title, content) { var alert = this.$modal.alert() .title(title) - .textContent(content) + .htmlContent(content) .ok(l('OK')); this.$modal.show(alert); }; @@ -34,7 +34,7 @@ Dialog.confirm = function(title, content, options) { var confirm = this.$modal.confirm() .title(title) - .textContent(content) + .htmlContent(content) .ok((options && options.ok)? options.ok : l('OK')) .cancel((options && options.cancel)? options.cancel : l('Cancel')); return this.$modal.show(confirm);