Busca en cnbGuatemala con Google
597 bytes añadidos
, hace 8 años
Línea 63: |
Línea 63: |
| attachTo: '#p-search', | | attachTo: '#p-search', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
− | overlay: false, | + | overlay: false, |
| buttons: [ { | | buttons: [ { |
− | name: 'Show me the search results', | + | name: 'Show me how to search (again)', |
| onclick: function () { | | onclick: function () { |
| $('#searchInput').focus(); | | $('#searchInput').focus(); |
| $('#searchInput').val('Comunicación'); | | $('#searchInput').val('Comunicación'); |
− | $('#searchInput').focus(); | + | $('#searchInput').focus(); |
− | $('form#searchform').submit(); | + | var press = jQuery.Event("keypress"); |
− | mw.libs.guiders.next(); | + | press.which = 40; |
| + | $("#searchInput").trigger(press); |
| + | $('#searchInput').focus(); |
| } | | } |
− | } ], | + | } ], |
| } ) | | } ) |
| .next( 'buscar3' ) | | .next( 'buscar3' ) |
Línea 83: |
Línea 85: |
| description: 'El buscador te sugerirá nombres de páginas que ya existen en el sitio', | | description: 'El buscador te sugerirá nombres de páginas que ya existen en el sitio', |
| attachTo: '#searchInput', | | attachTo: '#searchInput', |
− | position: 'bottomLeft', | + | position: 'left', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
− | overlay: false | + | overlay: false, |
| + | buttons: [ { |
| + | name: 'Show me the search results', |
| + | onclick: function () { |
| + | $('#searchInput').focus(); |
| + | $('#searchInput').val('Comunicación'); |
| + | $('#searchInput').focus(); |
| + | $('form#searchform').submit(); |
| + | mw.libs.guiders.next(); |
| + | } |
| + | } ], |
| } ) | | } ) |
| .next( 'buscar4' ) | | .next( 'buscar4' ) |