From a211c453643aff7d790d04d9b4e1e36f728130dd Mon Sep 17 00:00:00 2001 From: Taka Date: Fri, 8 Feb 2019 16:38:52 +0000 Subject: [PATCH] Show HTML content when confirming deleting sortable entries. --- vasl_templates/webapp/static/sortable.js | 4 ++-- vasl_templates/webapp/static/utils.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vasl_templates/webapp/static/sortable.js b/vasl_templates/webapp/static/sortable.js index f9a2822..2d3b52f 100644 --- a/vasl_templates/webapp/static/sortable.js +++ b/vasl_templates/webapp/static/sortable.js @@ -168,8 +168,8 @@ $.fn.sortable2 = function( action, args ) var display_name = SORTABLE_DISPLAY_NAMES[ get_sortable2_type($sortable2) ] ; var buf = [ "OK to delete this " + display_name[0] + "?", - "
", - escapeHTML( caption ), + "
", + caption, "
" ] ; ask( "Delete "+display_name[0], buf.join(""), { diff --git a/vasl_templates/webapp/static/utils.js b/vasl_templates/webapp/static/utils.js index b556c1c..83a1ac1 100644 --- a/vasl_templates/webapp/static/utils.js +++ b/vasl_templates/webapp/static/utils.js @@ -214,6 +214,8 @@ function ask( title, msg, args ) modal: true, closeOnEscape:false, title: title, + minWidth: 250, + maxHeight: window.innerHeight, create: function() { init_dialog( $(this), "OK", false ) ; // we handle ESCAPE ourself, to make it the same as clicking Cancel, not just closing the dialog