Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
23 bytes añadidos
, hace 7 años
Línea 90: |
Línea 90: |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
| overlay: false, | | overlay: false, |
− | onShow: function () { | + | onShow: function () { |
− | $('#searchInput').focus(); | + | $('#searchInput').focus(); |
− | var e = jQuery.Event("keydown"); | + | $('#searchInput').val('Comunicación'); |
− | e.which = 40; | + | $('#searchInput').focus(); |
− | e.keyCode = 40;
| + | var press = jQuery.Event("keypress"); |
− | $("#searchInput").trigger(e); | + | press.which = 40; |
− | $('#searchInput').val('Comunicación');
| + | $("#searchInput").trigger(press); |
− | $('#searchInput').focus(); | + | $('#searchInput').focus(); |
| }, | | }, |
| buttons: [ { | | buttons: [ { |