From 9a33f0c83bd9bbc41762605a27f6141f0df049d2 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 25 May 2020 14:30:13 -0700 Subject: [PATCH] add break word option to confirm window create function --- web/libs/js/dash2.confirm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/libs/js/dash2.confirm.js b/web/libs/js/dash2.confirm.js index 448013a6..dc90b624 100644 --- a/web/libs/js/dash2.confirm.js +++ b/web/libs/js/dash2.confirm.js @@ -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)