Set initial focus in dialogs.

master
Pacman Ghost 4 years ago
parent 601f161f84
commit 32fa0100bf
  1. 2
      vasl_templates/webapp/static/roar.js
  2. 2
      vasl_templates/webapp/static/user_settings.js
  3. 2
      vasl_templates/webapp/static/vo.js

@ -75,7 +75,7 @@ window.selectRoarScenario = function( onSelected )
},
open: function() {
// initialize
on_dialog_open( $(this) ) ;
on_dialog_open( $(this), $(this).find("select[type='search']") ) ;
$sel.select2( "open" ) ;
// update the UI
onResize( $(this) ) ;

@ -119,7 +119,7 @@ function user_settings( on_ok, caption )
}
},
open: function() {
on_dialog_open( $(this) ) ;
on_dialog_open( $(this), $(this).find("input[name='vasl-username']") ) ;
// FUDGE! Doing this in the "open" handler breaks loading the scenario-images-source droplist :shrug:
// FIXME! Using select2 breaks Ctrl-Enter handling :-(
$(this).find( "select" ).select2( { minimumResultsForSearch: -1 } ) ;

@ -99,7 +99,7 @@ function add_vo( vo_type, player_no )
},
open: function() {
// initialize
on_dialog_open( $(this) ) ;
on_dialog_open( $(this), $(this).find("select[type='search']") ) ;
add_flag_to_dialog_titlebar( $(this), get_player_no_for_element($sortable2) ) ;
$sel.select2( "open" ) ;
// set the titlebar color

Loading…
Cancel
Save