Show HTML content when confirming deleting sortable entries.

master
Pacman Ghost 5 years ago
parent fb34924ffe
commit a211c45364
  1. 4
      vasl_templates/webapp/static/sortable.js
  2. 2
      vasl_templates/webapp/static/utils.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] + "?",
"<div style='margin-top:1em;font-size:80%;font-style:italic;'>",
escapeHTML( caption ),
"<div style='margin:1em 0 0 1em;font-size:80%;font-style:italic;'>",
caption,
"</div>"
] ;
ask( "Delete "+display_name[0], buf.join(""), {

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

Loading…
Cancel
Save