Set focus to the Cancel button when asking the user a question.

master
Pacman Ghost 6 years ago
parent a99cb202e2
commit ecfcf093f6
  1. 3
      vasl_templates/webapp/static/utils.js

@ -120,6 +120,9 @@ function ask( title, msg, args )
$dlg.dialog( {
modal: true,
title: title,
open: function() {
$(".ui-dialog button:contains(Cancel)").focus();
},
buttons: {
OK: function() {
$(this).dialog( "close" ) ;

Loading…
Cancel
Save