add break word option to confirm window create function

build-default-monitor-config-from-definitions
Moe 2020-05-25 14:30:13 -07:00
parent b00c41a1d6
commit 9a33f0c83b
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ $(document).ready(function(){
if(options.title && options.body){
$.confirm.e.modal('show')
$.confirm.title.text(options.title)
$.confirm.body.css('word-wrap','initial')
if(options.breakWord){
$.confirm.body.css('word-wrap','break-word')
}
$.confirm.body.html(options.body)
}
if(options.clickOptions && options.clickCallback)$.confirm.click(options.clickOptions,options.clickCallback)