(js) Allow HTML in Dialog alert and confirm

Fixes #177
pull/186/head
Francis Lachapelle 2015-12-14 12:09:58 -05:00
parent 38fecebafd
commit 5a1816a5d4
1 changed files with 2 additions and 2 deletions

View File

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