update components

This commit is contained in:
Luke Pulverenti 2016-02-22 23:20:13 -05:00
parent 47a5078596
commit ecbff1ca26
12 changed files with 280 additions and 144 deletions

View file

@ -1,5 +1,10 @@
define([], function () {
function replaceAll(str, find, replace) {
return str.split(find).join(replace);
}
return function (options) {
if (typeof options === 'string') {
@ -9,7 +14,8 @@ define([], function () {
};
}
var result = confirm(options.text);
var text = replaceAll(options.text || '', '<br/>', '\n');
var result = confirm(text);
if (result) {
return Promise.resolve();